change last_nulls on mysql , is compatible with mariadb ?

This commit is contained in:
Ludovic CANDELLIER
2021-11-04 16:59:11 +01:00
parent c76996db86
commit 41cab61bda
2 changed files with 7 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ return [
* Nulls last sql pattern for PostgreSQL & Oracle.
* For MySQL, use 'CASE WHEN :column IS NULL THEN 1 ELSE 0 END, :column :direction'
*/
'nulls_last_sql' => ':column :direction NULLS LAST',
'nulls_last_sql' => 'CASE WHEN :column IS NULL THEN 1 ELSE 0 END, :column :direction',
/*
* User friendly message to be displayed on user if error occurs.