X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcancel001.phpt;h=aa754acb91716987816898feb6024d62b0e0f283;hb=ec79f18c30c64021ff78b631f713a4b1b380fd86;hp=e1c9bb3a15204a987dc0615ce689d03ac4bc1f06;hpb=1d3a582aeca2b93c221f4fbcf9ae42e5201f1639;p=m6w6%2Fext-pq diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index e1c9bb3..aa754ac 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -16,12 +16,14 @@ $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 +bool(true) object(pq\Result)#%d (7) { ["status"]=> int(7) @@ -38,4 +40,5 @@ object(pq\Result)#%d (7) { ["fetchType"]=> int(0) } +ERROR: canceling statement due to user request DONE