Invalid data type for negation (minus operator)
-----------------------------------------------

                 Key: CORE-5395
                 URL: http://tracker.firebirdsql.org/browse/CORE-5395
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.1
         Environment: FB 3.0.1 (WI-V6.3.1.32609 Firebird 3.0) x64
Windows 7
            Reporter: verleon


meta:

CREATE TABLE TABLE1 (
    ID  INTEGER
);

query:
 
select 1 from TABLE1 where id = - :param
 
result:
 
Unsuccessful execution caused by a system error that precludes successful 
execution of subsequent statements.
Dynamic SQL Error.
expression evaluation not supported.
Invalid data type for negation (minus operator).
 
This problem is gone when using  - (cast :param as integer)  instead of  - 
:param, but with FB 2.5 it was not necessary


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

        

------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to