Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord & oci8 driver adding double quotes to table names and fields
#1

[eluser]Andre83[/eluser]
I've just noticed that using ActiveRecord and the oci8 driver, writing this piece of code
Code:
$this->db->get('mytable')
produces the statement
Code:
SELECT * FROM "mytable"
, that fails miserably when executed.

This happens because the
Code:
$_escape_char
variable at line 49 of oci8_driver.php equals
Code:
"

Setting it to an empty string solves the problem; but is this really a possibile solution, or can it be done differently without having to patch the driver?


Messages In This Thread
ActiveRecord & oci8 driver adding double quotes to table names and fields - by El Forum - 11-10-2010, 04:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB