Description
A simple test program which uses dynamic parameter for unary operator "-" fails with an exception. Following is the snippet of the code
ps = con.prepareStatement("select * from t1 where c11 = -?");
ps.setInt(1,1);
rs = ps.executeQuery();
The prepareStatement call fails with following exception
SQLSTATE(42X36):ERROR 42X36: The '-' operator is not allowed to take a ? parameter as an operand.