From a1b4ee564e5748e5ccf846bcd301df766b92d147 Mon Sep 17 00:00:00 2001 From: Phil Appleby Date: Mon, 23 Dec 2024 11:55:22 +0000 Subject: [PATCH] enhancement to rgx ddl parser - allows for lower case table names --- carrottransform/tools/omopcdm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carrottransform/tools/omopcdm.py b/carrottransform/tools/omopcdm.py index 1bdf886..202a0c1 100644 --- a/carrottransform/tools/omopcdm.py +++ b/carrottransform/tools/omopcdm.py @@ -48,7 +48,7 @@ def process_ddl(self, fp): output_dict["date_fields"] = {} ver_rgx = re.compile(r'^--postgresql.*(\d+\.\d+)$') - start_rgx = re.compile(r'^CREATE\s*TABLE\s*(\@?[a-zA-Z]+\.)?([A-Z_]+)') + start_rgx = re.compile(r'^CREATE\s*TABLE\s*(\@?[a-zA-Z]+\.)?([a-zA-Z_]+)') datatype_rgx = re.compile(r'^\s*([a-z_]+)\s+([a-zA-Z_]+)') end_rgx = re.compile(r'.*[)];$') vermatched = False