This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ unaryOperator = PC.try do
424
424
(operator " -" $> Sig.Negative )
425
425
<|> (operator " +" $> Sig.Positive )
426
426
<|> (keyword " distinct" $> Sig.Distinct )
427
- <|> (keyword " not" $> Sig.Distinct )
427
+ <|> (keyword " not" $> Sig.Not )
428
428
<|> (keyword " exists" $> Sig.Distinct )
429
429
e ← primaryExpression
430
430
pure $ embed $ Sig.Unop { op, expr: e}
@@ -532,7 +532,7 @@ negatableSuffix = PC.try do
532
532
_ ← keyword " is"
533
533
n ← PC .optionMaybe $ keyword " not"
534
534
pure $ isNothing n
535
- let inv = fromMaybe true mbInv
535
+ let inv = fromMaybe false mbInv
536
536
suffix ← betweenSuffix <|> inSuffix <|> likeSuffix
537
537
pure \e → (if inv then _NOT else id) $ suffix e
538
538
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ printSqlDeclF = case _ of
501
501
FunctionDecl { ident, args, body } →
502
502
" CREATE FUNCTION "
503
503
<> ID .printIdent ident
504
- <> " (" <> F .intercalate " ," (map (" :" <> _) args) <> " ) BEGIN "
504
+ <> " (" <> F .intercalate " , " (map (" :" <> _) args) <> " ) BEGIN "
505
505
<> body
506
506
<> " END"
507
507
Import s →
You can’t perform that action at this time.
0 commit comments