mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
MFB: Fixed bug #39845 (Persistent connections generate a warning in
pdo_pgsql).
This commit is contained in:
parent
f6072e3bea
commit
2d2ed1ef76
1 changed files with 6 additions and 1 deletions
|
@ -450,6 +450,11 @@ static int pgsql_handle_rollback(pdo_dbh_t *dbh TSRMLS_DC)
|
||||||
return pdo_pgsql_transaction_cmd("ROLLBACK", dbh TSRMLS_CC);
|
return pdo_pgsql_transaction_cmd("ROLLBACK", dbh TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int pdo_pgsql_set_attr(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static struct pdo_dbh_methods pgsql_methods = {
|
static struct pdo_dbh_methods pgsql_methods = {
|
||||||
pgsql_handle_closer,
|
pgsql_handle_closer,
|
||||||
pgsql_handle_preparer,
|
pgsql_handle_preparer,
|
||||||
|
@ -458,7 +463,7 @@ static struct pdo_dbh_methods pgsql_methods = {
|
||||||
pgsql_handle_begin,
|
pgsql_handle_begin,
|
||||||
pgsql_handle_commit,
|
pgsql_handle_commit,
|
||||||
pgsql_handle_rollback,
|
pgsql_handle_rollback,
|
||||||
NULL, /* set_attr */
|
pdo_pgsql_set_attr,
|
||||||
pdo_pgsql_last_insert_id,
|
pdo_pgsql_last_insert_id,
|
||||||
pdo_pgsql_fetch_error_func,
|
pdo_pgsql_fetch_error_func,
|
||||||
pdo_pgsql_get_attribute,
|
pdo_pgsql_get_attribute,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue