Welcome Guest, Not a member yet? Register   Sign In
last_query does not work for me with Oracle
#1

(This post was last modified: 02-10-2016, 07:59 AM by SDir.)

How can I print the last query using CodeIgniter 3 and Oracle?


With same code, but with MySql, I write 


PHP Code:
print_r($this->db->last_query()); 


and I get successfully the print of the last query...


But if I move to Oracle db, It doesn't works for me...  no query are printed.

PS: I have grant on oracle V$SQL view.

Thank you
Reply
#2

There's no reason why it shouldn't work, it doesn't depend on the database in use.
Reply
#3

(02-10-2016, 11:11 AM)Narf Wrote: There's no reason why it shouldn't work, it doesn't depend on the database in use.

Thank you for your answer. 

I'm trying to understand why it happens... maybe OCI8 configuration?
Reply
#4

No, again - it doesn't depend on the driver, in any way.

You could've disabled it by setting save_queries to FALSE though.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB