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.
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.