Welcome Guest, Not a member yet? Register   Sign In
Undefined Property with MSSQL and Active Records
#1

[eluser]cemaleker[/eluser]
Trying to:

Code:
$search_query = $this->db->escape_like_str($search_query);
        $this->db->select($this->fields_to_select);
        $this->db->order_by($this->default_order);
        $this->db->where($this->default_where_array);
        $this->db->like('news_title', $search_query);
        $this->db->or_like('news_sum', $search_query);
        $data = $this->db->get($this->table_name, $limit, $offset);

Getting:

Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_DB_mssql_driver::$_like_escape_char
Filename: database/DB_active_rec.php
Line Number: 728

I'm gonna fix this by adding

Code:
$this->_like_escape_char = $this->_like_escape_chr;

to my extending DB class. Is this a bug. Or am I doing something wrong?


Messages In This Thread
Undefined Property with MSSQL and Active Records - by El Forum - 12-23-2009, 02:37 AM
Undefined Property with MSSQL and Active Records - by El Forum - 09-14-2010, 01:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB