db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta A. Satoor (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-582) Dynamic parameter should be allowed to be the operand of unary operator "-". Derby throws exception 42X36: The '-' operator is not allowed to take a ? parameter as an operand."
Date Wed, 21 Sep 2005 06:19:29 GMT
Dynamic parameter should be allowed to be the operand of unary operator "-". Derby throws exception
42X36: The '-' operator is not allowed to take a ? parameter as an operand."
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: DERBY-582
         URL: http://issues.apache.org/jira/browse/DERBY-582
     Project: Derby
        Type: Bug
  Components: JDBC  
    Versions: 10.2.0.0    
    Reporter: Mamta A. Satoor
 Assigned to: Mamta A. Satoor 


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message