Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when i use ibase_prepare and ibase_exec with numeric parameters #7

Closed
julienheroux opened this issue Nov 17, 2020 · 3 comments
Closed

Comments

@julienheroux
Copy link

Hi,
On some server in php 7.2.34 i've got error when i try to do :

$tmp=ibase_prepare($dbh, 'SELECT * FROM myTable WHERE myField = ?');
$tmp2=ibase_execute($tmp,1);

the error:
Dynamic SQL Error SQL error code = -303 arithmetic exception, numeric overflow, or string truncation
This problem is present only on some server and when i use integer parameters.
if i do:

$tmp=ibase_prepare($dbh, 'SELECT * FROM myTable WHERE myField = 1');
$tmp2=ibase_execute($tmp);

it works.
I don't understand what's the problem.
Any idea ?

@mrotteveel
Copy link
Member

What is the type of myField?

@julienheroux
Copy link
Author

myField is an integer

@julienheroux
Copy link
Author

Hi,
The problem disappears when i've update friebrid database from 2.1 to 2.5.9
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants