]> granicus.if.org Git - php/commitdiff
Fixed test (keyword is local related)
authorXinchen Hui <laruence@gmail.com>
Tue, 31 May 2016 08:54:38 +0000 (16:54 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 31 May 2016 08:55:58 +0000 (16:55 +0800)
ext/pdo_pgsql/tests/copy_from.phpt
ext/pdo_pgsql/tests/copy_to.phpt

index de1140dfea7124540b2385b43364a52b261e0378..31d7752174dd867fd2aaa9ccac4635f24e880dd3 100644 (file)
@@ -124,7 +124,7 @@ foreach (array($filename, $filenameWithDifferentNullValues, $filenameWithDiffere
        @unlink($f);
 }
 ?>
---EXPECT--
+--EXPECTF--
 Preparing test file and array for CopyFrom tests
 Testing pgsqlCopyFromArray() with default parameters
 bool(true)
@@ -259,7 +259,7 @@ array(6) {
   NULL
 }
 Testing pgsqlCopyFromArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s:  %s "test_error" %s
 Testing pgsqlCopyFromFile() with default parameters
 bool(true)
 array(6) {
@@ -393,7 +393,7 @@ array(6) {
   NULL
 }
 Testing pgsqlCopyFromFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s:  %s "test_error" %s
 Testing pgsqlCopyFromFile() with non existing file
 Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file
 
index 7bc46c6e0b6e2d51741d6ba90137130581e9c28e..93aab1667963c8ec7472825efc7efe9a06fd9a69 100644 (file)
@@ -77,7 +77,7 @@ if(isset($filename)) {
        @unlink($filename);
 }
 ?>
---EXPECT--
+--EXPECTF--
 Preparing test table for CopyTo tests
 Testing pgsqlCopyToArray() with default parameters
 array(3) {
@@ -116,7 +116,7 @@ array(3) {
 "
 }
 Testing pgsqlCopyToArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s:  %s "test_error" %s
 Testing pgsqlCopyToFile() with default parameters
 bool(true)
 0      test insert 0   \N
@@ -133,7 +133,7 @@ bool(true)
 1;NULL
 2;NULL
 Testing pgsqlCopyToFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s:  %s "test_error" %s
 Testing pgsqlCopyToFile() to unwritable file
 Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing