summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-20 19:26:27 +0000
committerMarcus Boerger <helly@php.net>2005-02-20 19:26:27 +0000
commita455c7abcbfe80bceee34787f05e6b5a94eba1b7 (patch)
tree318a927310e124f32230587111c25eb4a624de13 /ext/pdo_pgsql/pgsql_driver.c
parent5a48f0ec385a5677fe054a9cc97ff915f369dd40 (diff)
downloadphp-git-a455c7abcbfe80bceee34787f05e6b5a94eba1b7.tar.gz
- Shutup notices
Diffstat (limited to 'ext/pdo_pgsql/pgsql_driver.c')
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index dc7da53afd..9134ee769a 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -87,6 +87,12 @@ int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *
}
/* }}} */
+static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */
+{
+/* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */
+}
+/* }}} */
+
static int pdo_pgsql_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */
{
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
@@ -378,6 +384,8 @@ static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
goto cleanup;
}
+ PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh);
+
H->attached = 1;
H->pgoid = -1;