I get the error "ORA-12704: character set mismatch" caused by the following query:
Code: Select all
var query = from M3 in pDB.EntityFramework.DeviceData
where M3.ID == id
join G2 in pDB.EntityFramework.DeviceSorts on M3.DeviceID equals G2.ID
select new {
ID = M3.ID ?? "ABC",
Text1 = G2.Name ?? "XYZ"};
Code: Select all
SELECT
1 AS C1,
"Extent1".ID AS ID,
CASE WHEN ("Extent2"."Name" IS NULL) THEN 'XYZ' ELSE "Extent2"."Name" END AS C2
FROM "DeviceData" "Extent1"
INNER JOIN "DeviceSorts" "Extent2" ON "Extent1"."DeviceID" = "Extent2".ID
WHERE "Extent1".ID = :p__linq__0The column "Extent2"."Name" used in the examples is of datatype nvarchar(64).
'XYZ' should be N'XYZ' to work
The dataprovider should look at the datatypes of both results and select the most common type if possible.
This problem occures in version 5.70.140.0.
Best regards,
cew3