]> granicus.if.org Git - php/commitdiff
- Shutup notices
authorMarcus Boerger <helly@php.net>
Sun, 20 Feb 2005 19:26:27 +0000 (19:26 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 20 Feb 2005 19:26:27 +0000 (19:26 +0000)
ext/pdo_pgsql/pgsql_driver.c

index dc7da53afdf09a8ef32bd7d8bf9742aa7f0f1f71..9134ee769a4f1d605f79cac32de1cb1a6a30b339 100644 (file)
@@ -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;