@@ -419,7 +419,7 @@ else instance Symbol.Cons head tail result => SkipSpacesGo head tail result
419419class SkipStringLiteral :: Symbol -> Symbol -> Constraint
420420class SkipStringLiteral sym rest | sym -> rest
421421
422−instance Fail (Text "Unclosed string literal in WHERE clause") => SkipStringLiteral "" rest
422+instance Fail (Text "Unclosed string literal") => SkipStringLiteral "" rest
423423else instance
424424 ( Symbol.Cons h t sym
425425 , SkipStringLiteralGo h t rest
@@ -432,7 +432,7 @@ class SkipStringLiteralGo head tail rest | head tail -> rest
432432-- Closing quote: done
433433instance SkipStringLiteralGo "'" tail tail
434434-- End of string without closing quote
435−else instance Fail (Text "Unclosed string literal in WHERE clause") => SkipStringLiteralGo h "" rest
435+else instance Fail (Text "Unclosed string literal") => SkipStringLiteralGo h "" rest
436436-- Any other char: skip and continue
437437else instance
438438 ( Symbol.Cons nextH nextT tail
@@ -2191,6 +2191,14 @@ else instance (FlushJoinWord acc tables, ValidateJoinCondition tail tables) => V
21912191else instance (FlushJoinWord acc tables, ValidateJoinCondition tail tables) => ValidateJoinCondGo "(" tail acc tables
21922192else instance (FlushJoinWord acc tables, ValidateJoinCondition tail tables) => ValidateJoinCondGo ")" tail acc tables
21932193
2194+-- String literal: skip content between quotes
2195+else instance
2196+ ( FlushJoinWord acc tables
2197+ , SkipStringLiteral tail rest
2198+ , ValidateJoinCondition rest tables
2199+ ) =>
2200+ ValidateJoinCondGo "'" tail acc tables
2201+
21942202-- End of string: flush final word
21952203else instance
21962204 ( Symbol.Append acc h acc'