"where" condition applies wrongly
---------------------------------

                 Key: CORE-5798
                 URL: http://tracker.firebirdsql.org/browse/CORE-5798
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.3
            Reporter: fbbt


SET GENERATOR G TO 0;

SELECT * FROM 
  (SELECT GEN_ID(G, 1) as GenValue FROM T)
WHERE mod(GenValue, 2) = 0

----
result: 3, 5, 7, 9, 11, 13, ...
must be: 2, 4, 6, 8, 10, ...

-- 
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

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to