X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=sqlconvert%2Fprocess_mysql.py;h=fad7e4cc291a04241834557bbb90aa4c36283e67;hp=e99ea79edc2816c57787f0578589a38bacea6173;hb=b72239847f13152061182973ea573dd2e835a89e;hpb=843981ca5ac41be09212f3aa427500580a6e9f5c diff --git a/sqlconvert/process_mysql.py b/sqlconvert/process_mysql.py index e99ea79..fad7e4c 100644 --- a/sqlconvert/process_mysql.py +++ b/sqlconvert/process_mysql.py @@ -147,10 +147,10 @@ def process_statement(statement, dbname='sqlite'): remove_directive_tokens(statement) escape_strings(statement, dbname) try: - is_insert = get_DML_type(statement) == 'INSERT' + dml_type = get_DML_type(statement) except ValueError: - is_insert = False - if is_insert: + dml_type = 'UNKNOWN' + if dml_type == 'INSERT': for statement in split_ext_insert(statement): yield statement else: