-
Notifications
You must be signed in to change notification settings - Fork 17
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
Serious problem with the driver on Firebird 2.1 and 2.5 and Linux #19
Comments
Yes, we will check this. Do I understand this correct? The code above crashes Firebird 2.5? I don't use FB 2.1, but check on FB 2.5 should be possible. Can you also provide an example $queryString and the underlying table structure (DDL)? |
On 4/23/21 12:04 PM, peacefuldev wrote:
It is working fine on Windows, but on Linux, it doesn't work neither
with Firebird 2.1, nor with Firebird 2.5.
Have you tried with something fresh? FB3?
|
@MartinKoeditz: Yes, it crashes on FB2.5. I'll post the $queryString and DDL later today. @AlexPeshkoff: We couldn't switch to FB3.0 yet, because a desktop application is also going to use the same DB, and porting requires some work on that too. If we can't find a solution, we'll try with FB3.0. |
Upon trying to compile an example we've come to the conclusion that the problem is caused by an UDF library (we were confused, because the UDF call is embedded within a Stored Procedure). The UDF works fine under Firebird 2.1, but somehow one of the functions don't work on FB2.5. So the issue with 2.1 is still a problem, but regarding FB 2.5 it was a false alarm. Thank you! |
I have same error with FB 2.5 when use in select query where statement on timestamp field. |
@hoiihop Please provide an example code. What datatypes are use in the destination fields? Seems to be a compatibility problem. |
@MartinKoeditz I had this problem when try binding value to query (in db field has timestamp type, tried bind from php date/datetime/string). PHP 7.4.27, Laravel Framework Lumen (8.2.3) (Laravel Components ^8.0), Firebird 2.5. Now working only this:
|
Hello,
We've ran into a serious issue with the driver that we can't seem to overcome.
It is working fine on Windows, but on Linux, it doesn't work neither with Firebird 2.1, nor with Firebird 2.5.
With Firebird 2.1, parametrized queries don't work.
The issue has been mentioned here before, and closed without a solution:
#7
Whenever executing a parametrized query, Firebird gives the following error:
Dynamic SQL Error SQL error code = -303 arithmetic exception, numeric overflow, or string truncation.
Note that somebody else has also ran into this issue, even when using PDO:
https://stackoverflow.com/questions/64873300/pdo-firebird-cant-execute-prepare-statement-with-integer-parameters
In order to overcome the problem, we've tried switching to FB2.5.
With FB2.5, we've ran into a different, but not less serious issue:
Here is some example code:
When executing:
$query = ibase_prepare($this->transaction_handle, $queryString);
FB2.5 restarts itself.
In Firebird.log, the following two lines are written:
/opt/firebird/bin/fbguard: /opt/firebird/bin/fbserver terminated abnormally (-1)
/opt/firebird/bin/fbguard: guardian starting /opt/firebird/bin/fbserver
If we execute the query a second time, after the restart, it works fine!
We've tried this on Debian 9 and 10 and Ubuntu 18. Also with PHP 7.2 and 7.3.
All of the environments produce the error.
On Windows, everything works fine, even with FB2.1.
Could you please look into this issue? It keeps us from releasing our software on Linux.
The text was updated successfully, but these errors were encountered: