Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6446057

DataConversion issue from char to BigDecimail with EoD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • cts_5.0
    • core-libs
    • None
    • b96
    • generic
    • generic

      Sample code to demo the problem with passing a null to a method also results in a NullPointerException within EoD RI
      I could not get a successful execution of a method such as

      @Update("insert into foo("?1")
      void addFoo(String x)


      if i changed the method to return an int, it worked fine
      if i have an EoD Update such as

      @Update("insert into foo values(?1, ?2)")
       int insertRow(String x, String y)


      if i invoke insertRow("x", null)

      I get an Exception processing the arguments (the table supports nulls for the column but
      the Exception is before it gets to the backend)
      I cannot have more then 9 parameters in my eod query if i have ?10, it will fail to parse the query correctly
      ound another strange problem where I had a column in a table as varchar(20)


      The Data type class looked like


      public class foo {

      private BigDecimal ntrp;
      BigDecimal getNtrp() {return ntrp};
      void setNtrp(BigDecimal ntrp) {this.ntrp=ntrp};

      }


      Then i had a query that looked like;


      @Select("select ntrp from foo")
      DataSet<foo> getRows();



      I always got zero rows back and no SQLRuntimeException.

      Once I changed the datatype in foo from BigDecimal to String i got the expected rows back.

            kssaxena Kshitiz Saxena (Inactive)
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: