Welcome Guest, Not a member yet? Register   Sign In
pdo_driver.php, _escape_str($str) keeps returning FALSE
#1

(This post was last modified: 08-10-2017, 10:15 AM by fled.)

Hi.

I'm currently encountering a weird problem with version 3.0.6 of CodeIgniter.

I have two setups, one for development and one for production. Both are not using the same driver (because of configuration problem on my development computer) but are connected to the same DB

Prod use [sqlsrv], while Dev use [PDO] with dsn params: ['dsn' => 'odbc:Driver={SQL Server};...]

While using the query builder, the string is escaped using [protected function _escape_str($str)] in pdo_driver.php
in this function, [$strQuote = $this->conn_id->quote($str)] always return FALSE.

Just to set the variables, I'm experiencing this problem only in my development environment which is using PDO

I'm using phpEd as code editor and debug tool, but I cannot enter [conn_id->quote($str)] in debug mode to understand what is the problem.  it keeps sending me FALSE without any errors nor exception output.

Can anyone tell me where this function is declared, or help me resolve this situation?
else, I will need to modify this core function, witch is not a very good idea...  

Thanks
Reply


Messages In This Thread
pdo_driver.php, _escape_str($str) keeps returning FALSE - by fled - 08-10-2017, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB