@@ -581,8 +581,13 @@ else instance
581581class ParseSelectGo :: Symbol -> Symbol -> Symbol -> Row (Row Type) -> RL.RowList Type -> RL.RowList Type -> Constraint
582582class ParseSelectGo head tail acc tables accRL outRL | head tail acc tables accRL -> outRL
583583
584−-- Comma: emit column, continue
584+-- Leading/double comma: no column name before comma
585585instance
586+ Fail (Text "Unexpected comma in SELECT clause (missing column name)") =>
587+ ParseSelectGo "," tail "" tables accRL outRL
588+
589+-- Comma: emit column, continue
590+else instance
586591 ( ResolveColumn acc tables (Column typ constraints)
587592 , SplitOnDot acc _hasDot _table colName
588593 , SkipSpaces tail rest