Ignore:
Timestamp:
Mar 21, 2010, 10:15:54 PM (14 years ago)
Author:
patdenice
Message:

feature 1255: add pwg_select_db function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_pgsql.inc.php

    r5196 r5230  
    3434 */
    3535
    36 function pwg_db_connect($host, $user, $password, $database)
     36function pwg_db_connect($host, $user, $password, $database, $die=true)
    3737{
    3838  $connection_string = '';
     
    5050                                $password,
    5151                                $database);
    52   $link = pg_connect($connection_string) or my_error('pg_connect', false); 
     52  $link = pg_connect($connection_string) or my_error('pg_connect', $die); 
    5353
    5454  return $link;
     55}
     56
     57function pwg_select_db($database=null, $link=null, $die=null)
     58{
     59  return true;
    5560}
    5661
Note: See TracChangeset for help on using the changeset viewer.