Mark transaction as open when started async
authorChris Wright <daverandom@php.net>
Thu, 27 Nov 2014 16:18:47 +0000 (16:18 +0000)
committerChris Wright <daverandom@php.net>
Thu, 27 Nov 2014 16:18:47 +0000 (16:18 +0000)
src/php_pqconn.c

index 10eb5d42d8a392eab8ebdd080fc59ef2ec856430..16d3f772c92ad9746bfeecfb941a0257526d937c 100644 (file)
@@ -1736,6 +1736,7 @@ static PHP_METHOD(pqconn, startTransactionAsync) {
 
                        php_pq_object_addref(obj TSRMLS_CC);
                        txn->conn = obj;
+                       txn->open = 1;
                        txn->isolation = isolation;
                        txn->readonly = readonly;
                        txn->deferrable = deferrable;