ID: 38256
Updated by: [EMAIL PROTECTED]
Reported By: h dot spuur at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: InterBase related
Operating System: Win2003 Server
PHP Version: 5.2.0RC1
New Comment:
I don't see any reason why this is a PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2006-07-30 01:49:57] h dot spuur at gmail dot com
Description:
------------
Running Firebird 2.0RC3 on Win2003 server w/Apache 2.2.2, I get this
easily reproduceable error. I seems that ibase_query() now binds the
'?' character in some erroneous way.
Reproduce code:
---------------
Table DDL:
- - - - - - - - - - - - - - - - - - - - -
CREATE TABLE "File"(
"Name" Varchar(252) NOT NULL,
"Type" Smallint NOT NULL,
PRIMARY KEY ("Name")
);
INSERT INTO "File"
("Name", "Type")
VALUES
("This is a filename", 321 );
- - - - - - - - - - - - - - - - - - - - -
$dbh = ibase_pconnect(); // arguments set in php.ini
ibase_query($dbh, 'SELECT "Name" FROM "File" WHERE "Type" = ?', 321);
Returns:
Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column
1 321 )
Expected result:
----------------
I expected to see the same result as running:
ibase_query($dbh, 'SELECT "Name" FROM "File" WHERE "Type" = 321' );
-which returns the correct recordset without hiccups.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38256&edit=1