Welcome Guest, Not a member yet? Register   Sign In
postgresql error code
#5

(05-13-2019, 10:19 AM)php_rocs Wrote: @makif,

What kind of connection are you using to connect to the database? PDO? Can we see your database config settings (minus the password)?

PHP Code:
$db['master'] = array(
 
   'dsn'    => '',
 
   'hostname' => $db_info_master["hostname"],
 
   'username' => $db_info_master["username"],
 
   'password' => $db_info_master["password"],
 
   'database' => $db_info_master["database"],
 
   'port'  => $db_info_master["port"],
 
   'dbdriver' => 'postgre',
 
   'dbprefix' => '',
 
   'pconnect' => FALSE,
 
   'db_debug' => FALSE,
 
   'cache_on' => FALSE,
 
   'cachedir' => 'application/cache',
 
   'char_set' => 'utf8',
 
   'dbcollat' => 'utf8_general_ci',
 
   'swap_pre' => '',
 
   'encrypt' => FALSE,
 
   'compress' => FALSE,
 
   'stricton' => FALSE,
 
   'failover' => array(),
 
   'save_queries' => TRUE    
); 
i guess we missunderstanding, i can connect the database, but if i set some value wrong,i want to see error code as mysql in codeigniter. 
for example  2002 hostname error in mysql, 1045 username or password, 1049 database name error, i can see this error code in mysql, but i dont see in postgresql,  if user set wrong value to database, how can i see postgresql's  database error codes
Reply


Messages In This Thread
postgresql error code - by makif - 05-13-2019, 04:15 AM
RE: postgresql error code - by php_rocs - 05-13-2019, 06:27 AM
RE: postgresql error code - by makif - 05-13-2019, 07:53 AM
RE: postgresql error code - by php_rocs - 05-13-2019, 10:19 AM
RE: postgresql error code - by makif - 05-13-2019, 11:40 PM
RE: postgresql error code - by php_rocs - 05-14-2019, 12:52 AM
RE: postgresql error code - by makif - 05-14-2019, 03:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB