Open
Description
Version: 3.2.6
Bug Description
The issue likely originated in the following commit 7972f60
SQL placeholders are being misinterpreted during query compilation, resulting in invalid syntax.
Steps To Reproduce
The following code is a simplified excerpt from a larger query, but it still demonstrates the issue
$where = [
'sublog.id >= ?' => $oldestRowId,
] ;
$query = $this->db->query(
'SELECT duration WHERE ?',
$where,
);
This generates the following invalid SQL
SELECT duration
WHERE (`sublog`.`id` >= 39 ?)
Expected Behavior
The query should compile to valid SQL like this
SELECT duration
WHERE (`sublog`.`id` >= 39)
Metadata
Metadata
Assignees
Labels
No labels