postgresql error code |
hey
i want to see database error code in postgresql when some database connection values are wrong. i use $this->db->error() but postgresql not showing error code. in postgre_driver.php has that function PHP Code: public function error() how can i see error code or how can i set error code in posgresql ? thanks for helping
@makif,
These links might help you. https://forum.codeigniter.com/thread-68046.html https://stackoverflow.com/questions/1248...o-database (05-13-2019, 06:27 AM)php_rocs Wrote: @makif, @php_rocs thanks for fast reply but it didnot work. i got error code if i use mysql database but i dont get codes in postgresql (05-13-2019, 10:19 AM)php_rocs Wrote: @makif, PHP Code: $db['master'] = array( 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
@makif
According to the documentation ( https://codeigniter.com/user_guide/datab...-of-values ) your setting for db_debug should be TRUE. (05-14-2019, 12:52 AM)php_rocs Wrote: @makif thanks for replying i tried but not working also i dont think its about de_debug because i set false in mysql and it shows me error code |
Welcome Guest, Not a member yet? Register Sign In |