From dc86c7e0155a7750f47f12b58780ba96455dbe8b Mon Sep 17 00:00:00 2001 From: Scott Thomas Date: Tue, 3 May 2022 10:20:53 +0100 Subject: [PATCH] Allow underscores in cast type names pgloader rejects type names containing underscores, but these could exist, for example if the user has created an enum type with underscores in the name. This commit adds underscores as permitted characters in CAST type names. --- src/parsers/command-cast-rules.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parsers/command-cast-rules.lisp b/src/parsers/command-cast-rules.lisp index e6345ecb..79fea019 100644 --- a/src/parsers/command-cast-rules.lisp +++ b/src/parsers/command-cast-rules.lisp @@ -27,7 +27,8 @@ (defrule cast-type-name (or double-quoted-namestring (and (alpha-char-p character) (* (or (alpha-char-p character) - (digit-char-p character))))) + (digit-char-p character) + #\_)))) (:text t)) (defrule cast-source-type (and kw-type cast-type-name)