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:
Code: Select all
SQLWriter.AddText((P+LastPos), QMarkBindValue.QMarkPosition - LastPos, TmpSQL);