개정판 a10ec5c3
issue #622: fix save
Change-Id: I4b454329d628efb5cb2f5b53682a1f2143630376
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
3195 | 3195 |
try: |
3196 | 3196 |
# Get a cursor object |
3197 | 3197 |
cursor = conn.cursor() |
3198 |
cursor.execute('begin') |
|
3198 |
if self.project.database.db_type == 'SQLite': |
|
3199 |
cursor.execute('begin') |
|
3199 | 3200 |
|
3200 | 3201 |
sql = "delete from LINE_DATA_LIST where PNID_NO = '{}'".format(drawing_name) |
3201 | 3202 |
cursor.execute(sql) |
... | ... | |
3266 | 3267 |
if show_progress: |
3267 | 3268 |
show_progress.emit(99) |
3268 | 3269 |
|
3269 |
cursor.execute('commit') |
|
3270 |
if self.project.database.db_type == 'SQLite': |
|
3271 |
cursor.execute('commit') |
|
3272 |
else: |
|
3273 |
conn.commit() |
|
3270 | 3274 |
# Catch the exception |
3271 | 3275 |
except Exception as ex: |
3272 | 3276 |
# Roll back any change if something goes wrong |
내보내기 Unified diff