Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function applyDate($select, $now)
'main_table.from_date is null or main_table.from_date <= ?',
$now
)->where(
'main_table.to_date is null or main_table.to_date >= ?',
'main_table.`to_date` is null or main_table.`to_date` >= ?',
$now
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ abstract class AbstractDb extends \Magento\Framework\Data\Collection
'WIDTH_BUCKET' => 898, 'WINDOW' => 899, 'WITH' => 900, 'WITHIN' => 901, 'WITHIN_GROUP' => 902,
'WITHOUT' => 903, 'WLM' => 904, 'WORK' => 905, 'WRITE' => 906, 'WRITETEXT' => 907,
'XMLCAST' => 908, 'XMLEXISTS' => 909, 'XMLNAMESPACES' => 910, 'XOR' => 911, 'YEAR' => 912,
'YEAR_MONTH' => 913, 'YEARS' => 914, 'ZEROFILL' => 915, 'ZEROIFNULL' => 916, 'ZONE' => 917
'YEAR_MONTH' => 913, 'YEARS' => 914, 'ZEROFILL' => 915, 'ZEROIFNULL' => 916, 'ZONE' => 917,
// Recent MariaDB reserved parser keywords (unquoted use raises ERROR 1064):
// VECTOR (11.6), ST_COLLECT (11.8), CONVERSION and TO_DATE (12.2).
'VECTOR' => 918, 'ST_COLLECT' => 919, 'CONVERSION' => 920, 'TO_DATE' => 921
];

/**
Expand Down