|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22854 ibase_query complains that number of read/write doesn't equal count values
Submitted: 2003-03-24 11:16 UTC Modified: 2003-08-20 18:25 UTC
From: al2925 at mail dot ru Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.3.0 OS: Windows 2000 Server SP3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
1 + 45 = ?
Subscribe to this entry?

 [2003-03-24 11:16 UTC] al2925 at mail dot ru
I get such warning:

PHP Warning:  ibase_query(): Dynamic SQL Error SQL error code = -804 Count of read-write columns does not equal count of values  in c:\gentle\php_includes\IbaseConnection.php(86) : runtime-created function on line 1

The query looks like 

ibase_query($link, 'INSERT INTO tableName (cols, ..) VALUES (cols, ?, ?, ?)', $blob0, $blob1, $blob2);

All parameters are BLOBs. This happens only if the count of parameters is more than one. I'm running Firebird Superserver for Windows version The error began to occur after I upgraded from PHP 4.3.2 

Please, feel free to contact me via e-mail. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-31 01:59 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2003-08-20 18:25 UTC]
As the query string is passed untouched to the Interbase client library, the error is either in the string (which I suspect is the case) or in Interbase itself. 

My guess is that simply the (number of fields) != (number of values + placeholders)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 12 12:01:31 2024 UTC