fix:投入データ読込ループのIndexカウントアップのタイミングを修正した
This commit is contained in:
parent
32c320dba2
commit
a079e528e4
@ -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,' # システム項目:更新者
|
||||||
sql = f'{sql} NULL)' # システム項目:更新日時
|
sql = f'{sql} NULL)' # システム項目:更新日時
|
||||||
|
|
||||||
|
index += 1
|
||||||
|
|
||||||
# ロードスキーマのトランザクション開始
|
# ロードスキーマのトランザクション開始
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
cur.execute(sql)
|
cur.execute(sql)
|
||||||
conn.commit()
|
conn.commit()
|
||||||
normal_count += 1
|
normal_count += 1
|
||||||
|
|
||||||
index += 1
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
warning_count += 1
|
warning_count += 1
|
||||||
warning_info = f'{warning_info} {index} ロードスキーマ登録時にエラーが発生しました {line} {e}\n'
|
warning_info = f'{warning_info} {index} ロードスキーマ登録時にエラーが発生しました {line} {e}\n'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user