Skip to content

Commit

Permalink
enhancement to rgx ddl parser - allows for lower case table names
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilAppleby committed Dec 23, 2024
1 parent 7c57500 commit a1b4ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carrottransform/tools/omopcdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1b4ee5

Please sign in to comment.