fix: allow cast on types with underscores/numbers

e.g. select=oid_array::_int4
This commit is contained in:
steve-chavez
2022-05-09 13:02:33 -05:00
committed by Steve Chavez
parent 867f2569a0
commit d88b16e5ab
6 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ pFieldSelect = lexeme $
do
alias <- optionMaybe ( try(pFieldName <* aliasSeparator) )
fld <- pField
cast' <- optionMaybe (string "::" *> many letter)
cast' <- optionMaybe (string "::" *> many (letter <|> digit <|> oneOf "_"))
return (fld, toS <$> cast', alias, Nothing, Nothing)
)
<|> do