Query parsing failed
--------------------
Key: CORE-5743
URL: http://tracker.firebirdsql.org/browse/CORE-5743
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0.3
Environment: Windows 7, Delphi using UIB and Firebird Client DLL
(reproducible within IBExpert)
Reporter: Pierre Yager
This query was known to work in Firebird 3.0.2 :
select
2 as TYPE_MVT,
TYPE_REGLEMENT,
DEVISE,
null as BANQUE
sum(QUANTITE) as NOMBRE,
sum(VALEUR) as MONTANT
from JOURNAL_CAISSE
where (TYPE_MOUVEMENT in (2, 3)) and (ANNULE is false)
and (periode = ?)
group by 1,2,3,4
Now,, in Firebird 3.0.3 I get :
Overflow occurred during data type conversion.
conversion error from string "2".
I have to cast "2" as Integer to make it work again.
select
cast(2 as Integer) as TYPE_MVT,
TYPE_REGLEMENT,
DEVISE,
null as BANQUE
sum(QUANTITE) as NOMBRE,
sum(VALEUR) as MONTANT
from JOURNAL_CAISSE
where (TYPE_MOUVEMENT in (2, 3)) and (ANNULE is false)
and (periode = ?)
group by 1,2,3,4
--
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