} else {
print_r($res->fetchAll(PDO::FETCH_ASSOC));
}
---EXPECT--
+--EXPECTF--
Array
(
[0] => Array
(
[0] => 22P02
[1] => 7
- [2] => ERROR: invalid input syntax for type boolean: ""
+ [2] => %s: %sboolean%s
)
EMUL
Array
(
[0] => 22P02
[1] => 7
- [2] => ERROR: invalid input syntax for type boolean: ""
+ [2] => %s: %sboolean%s
)
NULL
}
Testing pgsqlCopyFromArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
Testing pgsqlCopyFromFile() with default parameters
bool(true)
array(6) {
NULL
}
Testing pgsqlCopyFromFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
Testing pgsqlCopyFromFile() with non existing file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file
"
}
Testing pgsqlCopyToArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
Testing pgsqlCopyToFile() with default parameters
bool(true)
0 test insert 0 \N
1;NULL
2;NULL
Testing pgsqlCopyToFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
Testing pgsqlCopyToFile() to unwritable file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing