diff --git a/pg4wp/core.php b/pg4wp/core.php index 562e7b7..4f8f932 100644 --- a/pg4wp/core.php +++ b/pg4wp/core.php @@ -24,6 +24,7 @@ $replaces = array( 'new wpdb' => 'new wpdb2', 'instanceof mysqli_result' => 'instanceof \PgSql\Result', 'instanceof mysqli' => 'instanceof \PgSql\Connection', + '$this->dbh->connect_errno' => 'wpsqli_connect_error()', 'mysqli_' => 'wpsqli_', 'is_resource' => 'wpsqli_is_resource', ' '', diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index fd86a6e..53aaa5a 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -392,7 +392,6 @@ function wpsqli_options($connection, $option, $value) */ function wpsqli_connect_errno() { - // mysqli_connect_errno => pg_last_error (resource $connection): string throw new \Exception("PG4WP: Not Yet Implemented"); }