Open nexterid opened 3 years ago
when using SQLServer throw this error
[Illuminate\Database\QueryException] "SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '`'. (SQL: UPDATE ...
so I need to remove backtick symbol from vendor\mavinoo\laravel-batch\src\Batch.php
from
if ($driver == 'pgsql' ) $final[$field][] = 'WHEN ' . $index . ' = \'' . $val[$index] . '\' THEN ' . $value . ' ';
to
if ($driver == 'pgsql' || $driver == 'sqlsrv') $final[$field][] = 'WHEN ' . $index . ' = \'' . $val[$index] . '\' THEN ' . $value . ' ';
hi @nexterid install version v2.2.9
disable backtick for driver pgsql & sqlsrv , commit: d3392a0
when using SQLServer throw this error
[Illuminate\Database\QueryException] "SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '`'. (SQL: UPDATE ...
so I need to remove backtick symbol from vendor\mavinoo\laravel-batch\src\Batch.php
from
if ($driver == 'pgsql' ) $final[$field][] = 'WHEN ' . $index . ' = \'' . $val[$index] . '\' THEN ' . $value . ' ';
if ($driver == 'pgsql' || $driver == 'sqlsrv') $final[$field][] = 'WHEN ' . $index . ' = \'' . $val[$index] . '\' THEN ' . $value . ' ';