update tests
[m6w6/ext-pq] / tests / cancel001.phpt
index e1c9bb3a15204a987dc0615ce689d03ac4bc1f06..f763847d1651424adb4b31c486efc703a1ea5c2c 100644 (file)
@@ -16,13 +16,15 @@ $c->execAsync("SELECT pg_sleep(2)");
 
 $x->cancel();
 
+var_dump($c === $x->connection);
 var_dump($c->getResult());
-
+printf("%s\n", $c->errorMessage);
 ?>
 DONE
 --EXPECTF--
 Test
-object(pq\Result)#%d (7) {
+bool(true)
+object(pq\Result)#%d (8) {
   ["status"]=>
   int(7)
   ["statusMessage"]=>
@@ -37,5 +39,8 @@ object(pq\Result)#%d (7) {
   int(0)
   ["fetchType"]=>
   int(0)
+  ["autoConvert"]=>
+  int(255)
 }
+ERROR:  canceling statement due to user request
 DONE