Hi,
We are trying to call a proc using the SQL Datasource Custom SQL tag.
The parameters that have NULL value in the record do not get substituted in the proc call giving the below error :
java.sql.SQLSyntaxErrorException: (conn=3194936) Unknown table '$values' in field list at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:62) at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:153) at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:274) at org.mariadb.jdbc.MariaDbStatement.executeInternal(MariaDbStatement.java:363) at org.mariadb.jdbc.MariaDbStatement.executeQuery(MariaDbStatement.java:612) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
Below is the call as printed in the logs :
CALL PROC_NAME(3369,'TPPPPP','TPPPPP',$values.param1,$values.param2,'false',
-1005,$values.param5,2,$values.param3,0,$values.param4,@`_OutputId`,
@message, @`projectId`)
Seems the values were not replaced for the null parameters.
Parameters as passed in the request :
data:{
xxx:"TPPPPP",
yyy:"TPPPPP",
zzz:3369,
aaa:2,
para1m:null,
bbb:0,
para2:null,
para3:null,
ccc:-1005,
para4:null,
ddd:false,
param5:null
},
Please suggest.
"originally posted by devashish.kaushik "
We are trying to call a proc using the SQL Datasource Custom SQL tag.
The parameters that have NULL value in the record do not get substituted in the proc call giving the below error :
java.sql.SQLSyntaxErrorException: (conn=3194936) Unknown table '$values' in field list at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:62) at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:153) at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:274) at org.mariadb.jdbc.MariaDbStatement.executeInternal(MariaDbStatement.java:363) at org.mariadb.jdbc.MariaDbStatement.executeQuery(MariaDbStatement.java:612) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
Below is the call as printed in the logs :
CALL PROC_NAME(3369,'TPPPPP','TPPPPP',$values.param1,$values.param2,'false',
-1005,$values.param5,2,$values.param3,0,$values.param4,@`_OutputId`,
@message, @`projectId`)
Seems the values were not replaced for the null parameters.
Parameters as passed in the request :
data:{
xxx:"TPPPPP",
yyy:"TPPPPP",
zzz:3369,
aaa:2,
para1m:null,
bbb:0,
para2:null,
para3:null,
ccc:-1005,
para4:null,
ddd:false,
param5:null
},
Please suggest.
"originally posted by devashish.kaushik "
Comment