CodeIgniter Forums
db_debug = false postgres display error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: db_debug = false postgres display error (/showthread.php?tid=51732)



db_debug = false postgres display error - El Forum - 05-15-2012

[eluser]Unknown[/eluser]
Hi,

I'm setting db_debug = false in config/database.php and i'm using postgres but codeigniter always displays errors.

That is a bug?

Thanks.


db_debug = false postgres display error - El Forum - 05-15-2012

[eluser]Chathuranga Tennakoon[/eluser]
can you post the necessary codes here? then we will be able to figure it out easily.



db_debug = false postgres display error - El Forum - 05-16-2012

[eluser]Unknown[/eluser]
Of course:

Code:
$db['default']['hostname'] = '00.00.00.00';
$db['default']['username'] = 'someuser';
$db['default']['password'] = 'somepassword';
$db['default']['database'] = 'somedb';
$db['default']['dbdriver'] = 'postgre';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = FALSE;
$db['default']['cache_on'] = FALSE;

When i try to delete a row, sometimes the database triggers an error on screen (due to Referential Integrity), but i need hide that error and continue the process.

Code:
$this->db->where('fieldid', $id);
$ret = $this->db->delete('sometable');

Do you need see something more? Let me know it.

Thank u.