GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Currently the DB Module uses the $db->quote_identifier(reset($column)) in the query builder when compiling the where columns. However this function should only be used on the column alias and not the column name as it can not handle quoting mysql functions and other unique sql statements.
$db->quote_column(reset($column)) works as expected. The variable that caused the issue is
array('CONCAT("column1", "column2")', 'alias')
Change quoting function used on ORM where clause when an array with a…
… mysql function is used.
Use DB::expr when you don't want something quoted.