fix:投入データ読込ループのIndexカウントアップのタイミングを修正した

This commit is contained in:
*lcOeIaePm0 2021-11-01 22:38:57 +09:00
parent 32c320dba2
commit a079e528e4

View File

@ -123,13 +123,13 @@ def main(bucket_name, target_data_source, target_file_name, settings_key, db_inf
sql = f'{sql} NULL,' # システム項目:更新者
sql = f'{sql} NULL)' # システム項目:更新日時
index += 1
# ロードスキーマのトランザクション開始
with conn.cursor() as cur:
cur.execute(sql)
conn.commit()
normal_count += 1
index += 1
except Exception as e:
warning_count += 1
warning_info = f'{warning_info} {index} ロードスキーマ登録時にエラーが発生しました {line} {e}\n'