X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=aa754acb91716987816898feb6024d62b0e0f283;hb=d613997b3072b8093bca3fe9d8aca115e2a579aa;hp=c39416dbb9f9cbf51f628321a6439739d9e0c128;hpb=ac08c194e71fee0f68559c1ec43f323ecc334019;p=m6w6%2Fext-pq diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index c39416d..aa754ac 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -16,15 +16,19 @@ $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 (6) { +bool(true) +object(pq\Result)#%d (7) { ["status"]=> int(7) + ["statusMessage"]=> + string(11) "FATAL_ERROR" ["errorMessage"]=> string(47) "ERROR: canceling statement due to user request" ["numRows"]=> @@ -36,4 +40,5 @@ object(pq\Result)#%d (6) { ["fetchType"]=> int(0) } +ERROR: canceling statement due to user request DONE