Hi all,
I followed the stored procedure tutorial and adapted it to MySQL as the orginial once was intented for MS SQL I guess.
My JS Code concats an SQL statement string to pass it to the SP. The second step is to call the stored procedure in the database.
The SP called correctly as the data passed it way into the db.
But Mirth logged an 'error' instead of an 'sent' with the error message:
"org.mozilla.javascript.WrappedException: Wrapped java.sql.SQLException: Invalid column count. Cannot be less or equal to zero (210c2418-5f91-4109-a489-9e86fd9f6aa1#52)
at org.mozilla.javascript.Context.throwAsScriptRuntim eEx(Context.java:1693)"
My JS script:
8<------
dbConn.executeCachedQuery(sql);
8<------
I think the problem is that a SP in MySQL doesn't return any value. Is there an other function in the DbConnection-Class I could use to call a SP without waiting for a return value?
TIA,
Daniel
Hamm - Germany
I followed the stored procedure tutorial and adapted it to MySQL as the orginial once was intented for MS SQL I guess.
My JS Code concats an SQL statement string to pass it to the SP. The second step is to call the stored procedure in the database.
The SP called correctly as the data passed it way into the db.
But Mirth logged an 'error' instead of an 'sent' with the error message:
"org.mozilla.javascript.WrappedException: Wrapped java.sql.SQLException: Invalid column count. Cannot be less or equal to zero (210c2418-5f91-4109-a489-9e86fd9f6aa1#52)
at org.mozilla.javascript.Context.throwAsScriptRuntim eEx(Context.java:1693)"
My JS script:
8<------
dbConn.executeCachedQuery(sql);
8<------
I think the problem is that a SP in MySQL doesn't return any value. Is there an other function in the DbConnection-Class I could use to call a SP without waiting for a return value?
TIA,
Daniel
Hamm - Germany
Comment