Ok, thanks for the tip, it guided me to the solve the prob, i removed ->select.
——-
in fact i was using select because without an error occured :
———
A Database Error Occurred
Error Number: 1054
Unknown column 'bookmarks.*' in 'field list'
SELECT `bookmarks`.`*` FROM (`bookmarks`) LEFT JOIN `bookmarks_tags` ON `bookmarks`.`id` = `bookmark_id` LEFT JOIN `tags` ON `tags`.`id` = `tag_id` WHERE `tags`.`id` = 19that’s why i use ->select. `*` causes the error (mysql 5.0.51a, mysql 5.0.67 and a version beetween thoses) (xampp for linux packages), SELECT `bookmarks`.* would be better (for that mysql version at least).
So I modified the file Codeigniter core file system/database/drivers/mysql/mysql_driver.php
function _escape_identifiers($item)
{
if ($this->_escape_char == '')
{
return $item;
}
if(substr($item,-1,1) == '*')
{
return $item;
}
if (strpos($item, '.') !== FALSE)
{
$str = $this->_escape_char.str_replace('.', $this->_escape_char.'.'.$this->_escape_char, $item).$this->_escape_char;
}
else
{
$str = $this->_escape_char.$item.$this->_escape_char;
}
// remove duplicates if the user already included the escape
return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
}I just added
if(substr($item,-1,1) == '*')
{
return $item;
}Someone may report the problem ... (I’m too new, and don’t know if i had to)