diff options
Diffstat (limited to 'include/dblayer/functions_pgsql.inc.php')
-rw-r--r-- | include/dblayer/functions_pgsql.inc.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/dblayer/functions_pgsql.inc.php b/include/dblayer/functions_pgsql.inc.php index 64e59544e..fe350d090 100644 --- a/include/dblayer/functions_pgsql.inc.php +++ b/include/dblayer/functions_pgsql.inc.php @@ -33,7 +33,7 @@ define('DB_RANDOM_FUNCTION', 'RANDOM'); * */ -function pwg_db_connect($host, $user, $password, $database) +function pwg_db_connect($host, $user, $password, $database, $die=true) { $connection_string = ''; if (strpos($host,':') !== false) @@ -49,11 +49,16 @@ function pwg_db_connect($host, $user, $password, $database) $user, $password, $database); - $link = pg_connect($connection_string) or my_error('pg_connect', false); + $link = pg_connect($connection_string) or my_error('pg_connect', $die); return $link; } +function pwg_select_db($database=null, $link=null, $die=null) +{ + return true; +} + function pwg_db_check_charset() { return true; |