Using simple Embedded SQL Update command using parameter as follows:
UPDATE “T01-RawTransaction”
SET “StatementDate” = :ParamDate
WHERE “Recorded” = TRUE
AND “StatementDate” IS NULL
“StatementDate” is of type Date and “Recorded” is of type Boolean.
Error is: Assert failed: S0000 Direct execute with param count > 0java.lang.Exception
at org.hsqldb.Trace.getStackTrace(Unknown Source)
at org.hsqldb.Trace.doAssert(Unknown Source)
at org.hsqldb.DatabaseCommandInterpreter.executePart(Unknown Source)
If I change the parameter to a specificvalue I get a different error complaining about the data type being wrong.
If I use a similar parameter in an INSERT command, the statement executes correctly when I use “Show output of ‘select’ statement” but when I choose “Run SQL command directly” the resulting parameter-replaced field is blank.
What am I doing wrong?