You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have (in PostgreSQL 10.21 (Ubuntu 10.21-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit) such a table:
-- Linq2db version: 4.2.0.0
-- PostgreSQL.9.5 PostgreSQL
SELECT
'I-' || Cast(x."Id" as VarChar(11)),
x."Name"
FROM
"MyTable" x
UNION ALL
SELECT
Cast(NULL as Int),
'QUASI-' || x_1."Name"
FROM
"MyTable" x_1
I have (in PostgreSQL 10.21 (Ubuntu 10.21-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit) such a table:
I have such a code (C#, netcoreapp3.1):
With linq2db version 3.6.0.0
it's generates a valid sql query:
But with linq2db versions 3.7.0.0 and newer (4.1.1.0, 4.1.0.0, 4.0.1.0, 4.0.0.0) it's generates a invalid sql query:
executing this query in postgres throws error:
SQL Error [42804]: ERROR: UNION types text and integer cannot be matched
L2DbNullStringTest.zip
The text was updated successfully, but these errors were encountered: