EIntOverflow in TZAbstractPostgreSQLPreparedStatementV3.PGExecute.ExecEmulated
Posted: 23.06.2022, 12:35
Hello. When I try to open a PostgreSQL's function with a single parameter via TZStoredProc I get the exception: First chance exception at $00007FFC6683FA7C. Exception class EIntOverflow with message 'Integer overflow'. Process PostGreSQLTest_Project1.exe (6796) in TZAbstractPostgreSQLPreparedStatementV3.PGExecute.ExecEmulated. It happens because ExecEmulated function tries to insert values of out parameters to SQLWriter. In fact there is only one parameter that has to be use in the SQL-query.
There is the value of FSQL variable:
There is the line with error:
There is the value of FSQL variable:
Code: Select all
'SELECT * FROM f_test_4(?)'
Code: Select all
SQLWriter.AddText((P+LastPos), QMarkBindValue.QMarkPosition - LastPos, TmpSQL);