Skip to content

Commit

Permalink
Fixed SchemaCompiler crashing on Set and Select statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jun 8, 2022
1 parent 04cc51e commit 052b638
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IHP/IDE/SchemaDesigner/Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ compileStatement Begin = "BEGIN;"
compileStatement Commit = "COMMIT;"
compileStatement DropFunction { functionName } = "DROP FUNCTION " <> compileIdentifier functionName <> ";"
compileStatement UnknownStatement { raw } = raw <> ";"
compileStatement Set { name, value } = "SET " <> compileIdentifier name <> " = " <> compileExpression value <> ";"
compileStatement SelectStatement { query } = "SELECT " <> query <> ";"

-- | Emit a PRIMARY KEY constraint when there are multiple primary key columns
compilePrimaryKeyConstraint :: PrimaryKeyConstraint -> Maybe Text
Expand Down

0 comments on commit 052b638

Please sign in to comment.