summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pdo_pgsql.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2009-10-07 17:40:16 +0000
committerMatteo Beccati <mbeccati@php.net>2009-10-07 17:40:16 +0000
commit9ee8dd90a37bde92c387e473fa756c896f8d941e (patch)
tree8732125324189495aa0fd842f8fc8fc0d2e6a656 /ext/pdo_pgsql/pdo_pgsql.c
parent309fced64dacb409053684ab1eb837bb9bb758c4 (diff)
downloadphp-git-9ee8dd90a37bde92c387e473fa756c896f8d941e.tar.gz
- Fixed bug #48764 (PDO_pgsql::query always uses implicit prepared statements if v3 proto available)
# original patch by Mark Kirkwood
Diffstat (limited to 'ext/pdo_pgsql/pdo_pgsql.c')
-rw-r--r--ext/pdo_pgsql/pdo_pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pdo_pgsql.c b/ext/pdo_pgsql/pdo_pgsql.c
index b23c67d2ec..4259ae38d7 100644
--- a/ext/pdo_pgsql/pdo_pgsql.c
+++ b/ext/pdo_pgsql/pdo_pgsql.c
@@ -85,8 +85,8 @@ ZEND_GET_MODULE(pdo_pgsql)
*/
PHP_MINIT_FUNCTION(pdo_pgsql)
{
- php_pdo_register_driver(&pdo_pgsql_driver);
REGISTER_PDO_CLASS_CONST_LONG("PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT", PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT);
+ php_pdo_register_driver(&pdo_pgsql_driver);
return SUCCESS;
}
/* }}} */