summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_affected_rows_oo.phpt
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2009-05-27 18:13:56 +0000
committerAndrey Hristov <andrey@php.net>2009-05-27 18:13:56 +0000
commite3456c0460c5a000e29bf91cd1fdc59e50ce97c0 (patch)
treeea5677ad210a1333e3d9548a7bd37fce670febc3 /ext/mysqli/tests/mysqli_affected_rows_oo.phpt
parent8124e94d22f2a1b7ed17216d03feb672769e631e (diff)
downloadphp-git-e3456c0460c5a000e29bf91cd1fdc59e50ce97c0.tar.gz
Fix tests when the server is running with ANSI_QUOTES
Diffstat (limited to 'ext/mysqli/tests/mysqli_affected_rows_oo.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_affected_rows_oo.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/tests/mysqli_affected_rows_oo.phpt b/ext/mysqli/tests/mysqli_affected_rows_oo.phpt
index 4d82981baf..42ab46eb15 100644
--- a/ext/mysqli/tests/mysqli_affected_rows_oo.phpt
+++ b/ext/mysqli/tests/mysqli_affected_rows_oo.phpt
@@ -28,7 +28,7 @@ mysqli->affected_rows
if (!$mysqli->query('CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE = ' . $engine))
printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
- if (!$mysqli->query('INSERT INTO test(id, label) VALUES (1, "a")'))
+ if (!$mysqli->query("INSERT INTO test(id, label) VALUES (1, 'a')"))
printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
if (1 !== ($tmp = $mysqli->affected_rows))
@@ -39,7 +39,7 @@ mysqli->affected_rows
if (-1 !== ($tmp = $mysqli->affected_rows))
printf("[007] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
- if (!$mysqli->query('INSERT INTO test(id, label) VALUES (1, "a") ON DUPLICATE KEY UPDATE id = 4'))
+ if (!$mysqli->query("INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDATE id = 4"))
printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
if (2 !== ($tmp = $mysqli->affected_rows))
@@ -107,4 +107,4 @@ mysqli->affected_rows
print "done!";
?>
--EXPECTF--
-done! \ No newline at end of file
+done!