RED-8561: updated sql query to avoid conflicts with primary key in table entity
This commit is contained in:
parent
7b6af5bf3b
commit
96be1ba52e
@ -9,4 +9,4 @@ SELECT (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))), e
|
||||
e.label, e.rank, e.type, e.version, e.recommendation_hex_color, e.has_dictionary, e.system_managed, e.auto_hide_skipped, e.soft_deleted_time, e.skipped_hex_color,
|
||||
e.dossier_dictionary_only
|
||||
FROM entity e
|
||||
WHERE (SELECT substr(e.id, POSITION(':' IN e.id) + POSITION(':' IN substr(e.id, POSITION(':' IN e.id) + 1)) + 1)) = '' IS FALSE OR NOT NULL;
|
||||
WHERE (SELECT trim(trailing ':' from trim(trailing e.dossier_id from e.id))) IS NOT NULL AND (SELECT substr(e.id, POSITION(':' IN e.id) + POSITION(':' IN substr(e.id, POSITION(':' IN e.id) + 1)) + 1)) = '' IS FALSE;
|
||||
Loading…
x
Reference in New Issue
Block a user