File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments