udr pascal returning char(x) cannot be converted to bigint
----------------------------------------------------------
Key: CORE-5828
URL: http://tracker.firebirdsql.org/browse/CORE-5828
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0.4
Reporter: Karol Bieniaszewski
modify udr pascal sample gen_rows and compile with Delphi (maybe this is
unreleated to Delphi)
---------------------------------------------------
change result to:
result: Array[0.199] of AnsiChar;
---------------------------------------------------
and result declaration of procedure under Firebird
result CHAR(200);
---------------------------------------------------
in fetch procedure put '1635721458409799680' as result
---------------------------------------------------
now try select:
SELECT CAST(CAST(P.RESULT AS VARCHAR(200)) AS BIGINT)
FROM gen_rows_pascal(
1
, 100
) p;
arithmetic exception, numeric overflow, or string truncation
string right truncation
expected length 52, actual 200.
---------------------------------------------------
interesting that CAST(CAST(P.RESULT AS VARCHAR(100)) AS BIGINT)
cause
expected length 100, actual 100.
---------------------------------------------------
maybe this is releated to CORE-5802 but with bigger problem because here cast
fail and this prevent to work with data
--
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