mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Better regexp for PG SQL identifiers
This commit is contained in:
parent
54997be2dd
commit
792db2fcf4
@ -26,7 +26,7 @@
|
||||
(cond ((quoted-p identifier)
|
||||
:none)
|
||||
|
||||
((cl-ppcre:scan "[^A-Za-z_]" identifier)
|
||||
((not (cl-ppcre:scan "^[A-Za-z_][A-Za-z0-9_$]*$" identifier))
|
||||
:quote)
|
||||
|
||||
((member lowercase-identifier *pgsql-reserved-keywords*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user