1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00

fix isolation level

This commit is contained in:
Michael Wallner 2014-10-23 12:49:34 +02:00
parent 4e530d65c9
commit 967ea17858
2 changed files with 3 additions and 3 deletions

View File

@ -1621,7 +1621,7 @@ STATUS php_pqconn_start_transaction(zval *zconn, php_pqconn_object_t *conn_obj,
} else { } else {
PGresult *res; PGresult *res;
smart_str cmd = {0}; smart_str cmd = {0};
const char *il = isolation_level(&isolation); const char *il = php_pq_isolation_level(&isolation);
smart_str_appends(&cmd, "START TRANSACTION ISOLATION LEVEL "); smart_str_appends(&cmd, "START TRANSACTION ISOLATION LEVEL ");
smart_str_appends(&cmd, il); smart_str_appends(&cmd, il);
@ -1660,7 +1660,7 @@ STATUS php_pqconn_start_transaction_async(zval *zconn, php_pqconn_object_t *conn
throw_exce(EX_UNINITIALIZED TSRMLS_CC, "pq\\Connection not initialized"); throw_exce(EX_UNINITIALIZED TSRMLS_CC, "pq\\Connection not initialized");
} else { } else {
smart_str cmd = {0}; smart_str cmd = {0};
const char *il = isolation_level(&isolation); const char *il = php_pq_isolation_level(&isolation);
smart_str_appends(&cmd, "START TRANSACTION ISOLATION LEVEL "); smart_str_appends(&cmd, "START TRANSACTION ISOLATION LEVEL ");
smart_str_appends(&cmd, il); smart_str_appends(&cmd, il);

View File

@ -38,7 +38,7 @@ typedef struct php_pqtxn_object {
php_pqtxn_t *intern; php_pqtxn_t *intern;
} php_pqtxn_object_t; } php_pqtxn_object_t;
extern const char *isolation_level(long *isolation); extern const char *php_pq_isolation_level(long *isolation);
extern zend_class_entry *php_pqtxn_class_entry; extern zend_class_entry *php_pqtxn_class_entry;
extern zend_object_value php_pqtxn_create_object_ex(zend_class_entry *ce, php_pqtxn_t *intern, php_pqtxn_object_t **ptr TSRMLS_DC); extern zend_object_value php_pqtxn_create_object_ex(zend_class_entry *ce, php_pqtxn_t *intern, php_pqtxn_object_t **ptr TSRMLS_DC);