mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-08-02 19:14:27 +02:00
add connect error handling
This commit is contained in:
@@ -24,6 +24,7 @@ $replaces = array(
|
|||||||
'new wpdb' => 'new wpdb2',
|
'new wpdb' => 'new wpdb2',
|
||||||
'instanceof mysqli_result' => 'instanceof \PgSql\Result',
|
'instanceof mysqli_result' => 'instanceof \PgSql\Result',
|
||||||
'instanceof mysqli' => 'instanceof \PgSql\Connection',
|
'instanceof mysqli' => 'instanceof \PgSql\Connection',
|
||||||
|
'$this->dbh->connect_errno' => 'wpsqli_connect_error()',
|
||||||
'mysqli_' => 'wpsqli_',
|
'mysqli_' => 'wpsqli_',
|
||||||
'is_resource' => 'wpsqli_is_resource',
|
'is_resource' => 'wpsqli_is_resource',
|
||||||
'<?php' => '',
|
'<?php' => '',
|
||||||
|
@@ -392,7 +392,6 @@ function wpsqli_options($connection, $option, $value)
|
|||||||
*/
|
*/
|
||||||
function wpsqli_connect_errno()
|
function wpsqli_connect_errno()
|
||||||
{
|
{
|
||||||
// mysqli_connect_errno => pg_last_error (resource $connection): string
|
|
||||||
throw new \Exception("PG4WP: Not Yet Implemented");
|
throw new \Exception("PG4WP: Not Yet Implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user