mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2026-01-26 08:22:19 +01:00
Rather than calling pg_connect directly, call wpsql_select_db with the best guess at the database name. This sets $GLOBALS['pg4wp_conn'] and avoids reconnecting whenever the guess is correct. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>