Welcome Guest, Not a member yet? Register   Sign In
[RESOLVED] Undefined property: CI_DB_postgre_driver::$_like_escape_char
#1

[eluser]diego.agudo[/eluser]
Code:
Severity: Notice
Message: Undefined property: CI_DB_postgre_driver::$_like_escape_char
Filename: database/DB_active_rec.php
Line Number: 728

I'm using the Postgres database with active record, when I try to use the LIKE generates this error.

One suggestion, the method LIKE postgres could be changed to the ILIKE, where it makes no difference between uppercase and lowercase.
#2

[eluser]diego.agudo[/eluser]
Nothing better how to report a bug and have no response, continue like that.
#3

[eluser]Marcel Araujo[/eluser]
Find in file database/DB_active_rec.php in the line 728 and replace a character!

From
$like_statement = $like_statement.sprintf($this->_like_escape_str, $this->_like_escape_char);

To
$like_statement = $like_statement.sprintf($this->_like_escape_str, $this->_like_escape_chr);

To me this solved my problem.
#4

[eluser]diego.agudo[/eluser]
[quote author="Marcel Araujo" date="1270714383"]Find in file database/DB_active_rec.php in the line 728 and replace a character!

From
$like_statement = $like_statement.sprintf($this->_like_escape_str, $this->_like_escape_char);

To
$like_statement = $like_statement.sprintf($this->_like_escape_str, $this->_like_escape_chr);

To me this solved my problem.[/quote]

Hey thankz, Its work.

Smile




Theme © iAndrew 2016 - Forum software by © MyBB