We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60073ba + c62c583 commit 4f751daCopy full SHA for 4f751da
1 file changed
tests/issue35_001.phpt
@@ -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
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