planetarydev/json-sql-builder2

$concat broken for SQLite

lukesrw opened this issue · 0 comments

SQLite does not support the CONCAT() function, so $concat does not work.
Instead, the SQL implementation for CONCAT should seperate strings with pipes.

So MySQL:

SELECT
    CONCAT("one", "two", column1)
FROM
    ...

Should be:

SELECT
    "one" || "two" || column1
FROM
    ...