X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=5ccdf43198089f239ef4107b596bc56530d8f143;hp=e1c9bb3a15204a987dc0615ce689d03ac4bc1f06;hb=07b495a28adae2152164369654b365a93273cea9;hpb=1d3a582aeca2b93c221f4fbcf9ae42e5201f1639 diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index e1c9bb3..5ccdf43 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -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(65535) } +ERROR: canceling statement due to user request DONE