diff options
author | Andrey Hristov <andrey@php.net> | 2009-05-27 18:13:56 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2009-05-27 18:13:56 +0000 |
commit | e3456c0460c5a000e29bf91cd1fdc59e50ce97c0 (patch) | |
tree | ea5677ad210a1333e3d9548a7bd37fce670febc3 /ext/mysqli/tests/mysqli_affected_rows.phpt | |
parent | 8124e94d22f2a1b7ed17216d03feb672769e631e (diff) | |
download | php-git-e3456c0460c5a000e29bf91cd1fdc59e50ce97c0.tar.gz |
Fix tests when the server is running with ANSI_QUOTES
Diffstat (limited to 'ext/mysqli/tests/mysqli_affected_rows.phpt')
-rw-r--r-- | ext/mysqli/tests/mysqli_affected_rows.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysqli/tests/mysqli_affected_rows.phpt b/ext/mysqli/tests/mysqli_affected_rows.phpt index d5d2328293..771ecb47a1 100644 --- a/ext/mysqli/tests/mysqli_affected_rows.phpt +++ b/ext/mysqli/tests/mysqli_affected_rows.phpt @@ -36,18 +36,18 @@ mysqli_affected_rows() if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE = ' . $engine)) printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); - if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a")')) + if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a')")) printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); if (1 !== ($tmp = mysqli_affected_rows($link))) printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); // ignore INSERT error, NOTE: command line returns 0, affected_rows returns -1 as documented - mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a")'); + mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a')"); if (-1 !== ($tmp = mysqli_affected_rows($link))) printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); - if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a") ON DUPLICATE KEY UPDATE id = 4')) + if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDATE id = 4")) printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); if (2 !== ($tmp = mysqli_affected_rows($link))) @@ -128,4 +128,4 @@ mysqli_affected_rows() print "done!"; ?> --EXPECTF-- -done!
\ No newline at end of file +done! |