Welcome Guest, Not a member yet? Register   Sign In
Postgresql Driver Error Code.
#1

(This post was last modified: 09-03-2015, 05:46 PM by GregNapilot. Edit Reason: answer )

Is there a work around for me to get the error code for postgresql.
I notice that the Drivers error array returns empty string on "code" index and it uses pg_query() to execute the query that's is why it cant really return an error code.

Thanks i've found a workaround and used PDO driver instead will I encounter any trouble using it?
Reply
#2

The underlying PHP extension just doesn't provide an API for getting the error code, otherwise CI would return it.
Reply
#3

(09-03-2015, 07:25 AM)Narf Wrote: The underlying PHP extension just doesn't provide an API for getting the error code, otherwise CI would return it.
Thanks i've found a workaround and used PDO driver instead will I encounter any trouble using it?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB