Skip to content

Commit 4f751da

Browse files
committed
2 parents 60073ba + c62c583 commit 4f751da

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

tests/issue35_001.phpt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--TEST--
2+
Issue #35: ibase_prepare() fails to find table with SQL that has double quotes on table identifiers
3+
--SKIPIF--
4+
<?php
5+
include("skipif.inc");
6+
?>
7+
--FILE--
8+
<?php
9+
10+
require("interbase.inc");
11+
12+
$db = ibase_connect($test_base);
13+
14+
function test35() {
15+
ibase_query('CREATE TABLE "test" (ID INTEGER, CLIENT_NAME VARCHAR(10))');
16+
ibase_commit();
17+
$p = ibase_prepare('INSERT INTO "test" (ID, CLIENT_NAME) VALUES (?, ?)');
18+
ibase_execute($p, 1, "Some name");
19+
$q = ibase_query('SELECT * FROM "test"');
20+
while($r = ibase_fetch_object($q)){
21+
var_dump($r);
22+
}
23+
}
24+
25+
test35();
26+
27+
?>
28+
--EXPECTF--
29+
object(stdClass)#1 (2) {
30+
["ID"]=>
31+
int(1)
32+
["CLIENT_NAME"]=>
33+
string(9) "Some name"
34+
}

0 commit comments

Comments
 (0)