mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 01:15:34 +00:00
Update regular expression for mdbtools 1.0 output
The output formatting has changed - it now puts multiple data rows in a single INSERT statement, and also changes the quoting of text data.
This commit is contained in:
@@ -439,7 +439,8 @@ CREATE VIEW IF NOT EXISTS Capacity_View
|
||||
def mdb_get_data_text(s3db, filename, table):
|
||||
print("Reading %s..." % table)
|
||||
insert_pattern = re.compile(
|
||||
r'INSERT INTO "\w+" \([^)]+?\) VALUES \(("[^"]*"|[^")])+?\);\n', re.IGNORECASE
|
||||
r"""INSERT INTO "\w+" \([^)]+?\) VALUES (\((('[^']*')|"[^"]*"|[^')])+?\),?\s*)+;\n""",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
try:
|
||||
# Initialize values to avoid NameError in except clause
|
||||
|
||||
Reference in New Issue
Block a user