projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
tests & fixes
[m6w6/ext-pq]
/
tests
/
cancel001.phpt
diff --git
a/tests/cancel001.phpt
b/tests/cancel001.phpt
index c39416dbb9f9cbf51f628321a6439739d9e0c128..89c4931dcdbcc2692b5ca252ececd730d6e464c1 100644
(file)
--- a/
tests/cancel001.phpt
+++ b/
tests/cancel001.phpt
@@
-17,14
+17,16
@@
$c->execAsync("SELECT pg_sleep(2)");
$x->cancel();
var_dump($c->getResult());
$x->cancel();
var_dump($c->getResult());
-
+printf("%s\n", $c->errorMessage);
?>
DONE
--EXPECTF--
Test
?>
DONE
--EXPECTF--
Test
-object(pq\Result)#%d (
6
) {
+object(pq\Result)#%d (
7
) {
["status"]=>
int(7)
["status"]=>
int(7)
+ ["statusMessage"]=>
+ string(11) "FATAL_ERROR"
["errorMessage"]=>
string(47) "ERROR: canceling statement due to user request"
["numRows"]=>
["errorMessage"]=>
string(47) "ERROR: canceling statement due to user request"
["numRows"]=>
@@
-36,4
+38,5
@@
object(pq\Result)#%d (6) {
["fetchType"]=>
int(0)
}
["fetchType"]=>
int(0)
}
+ERROR: canceling statement due to user request
DONE
DONE