We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236a901 commit af99020Copy full SHA for af99020
language/python/extractor/requirements.txt
@@ -1,5 +1,4 @@
1
-SQLAlchemy~=1.4.32
2
-
3
-tqdm~=4.64.0
4
-astor~=0.8.1
+SQLAlchemy==1.4.54
+tqdm==4.64.0
+astor==0.8.1
5
pyinstaller==6.11.1
language/python/extractor/src/core/storage.py
@@ -2,7 +2,7 @@
import shutil
import sys
-from sqlalchemy import create_engine
+from sqlalchemy import create_engine, text
6
from sqlalchemy.orm import sessionmaker, scoped_session
7
8
from model.alias import Alias
@@ -124,7 +124,8 @@ def copy_db_file(dest_path):
124
sql_statements = f.read()
125
statements = sql_statements.split(";")
126
for statement in statements:
127
- session.execute(statement)
+ if statement.strip(): # 跳过空语句
128
+ session.execute(text(statement))
129
session.commit()
130
131
session.close()
0 commit comments