add connection to pg_last_error call
This commit is contained in:
@ -174,7 +174,7 @@ function pg4wp_init()
|
|||||||
$result = pg_query($connection, $sql);
|
$result = pg_query($connection, $sql);
|
||||||
|
|
||||||
if ((PG4WP_DEBUG || PG4WP_LOG_ERRORS) && $result === false) {
|
if ((PG4WP_DEBUG || PG4WP_LOG_ERRORS) && $result === false) {
|
||||||
$error = pg_last_error();
|
$error = pg_last_error($connection);
|
||||||
error_log("[" . microtime(true) . "] Error creating MySQL-compatible field function: $error\n", 3, PG4WP_LOG . 'pg4wp_errors.log');
|
error_log("[" . microtime(true) . "] Error creating MySQL-compatible field function: $error\n", 3, PG4WP_LOG . 'pg4wp_errors.log');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user