| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a65bcf commit 4fc350f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,6 +188,9 @@ SQLObject 0.9.10 | |||
| 188 | 188 | without this calling Transaction.close() calls connection.close() which | |
| 189 | 189 | is wrong. | |
| 190 | 190 | ||
| 191 | + * A bug in SQLiteConnection.columnsFromSchema() that led to an infinite | ||
| 192 | + loop was fixed. | ||
| 193 | + | ||
| 191 | 194 | SQLObject 0.9.9 | |
| 192 | 195 | =============== | |
| 193 | 196 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -313,9 +313,11 @@ def _columnsFromSchemaParse(self, tableName, soClass): | |||
| 313 | 313 | if not colData: | |
| 314 | 314 | raise ValueError('The table %s was not found in the database. Load failed.' % tableName) | |
| 315 | 315 | colData = colData[0].split('(', 1)[1].strip()[:-2] | |
| 316 | - while colData.find('(') > -1: | ||
| 316 | + while True: | ||
| 317 | 317 | start = colData.find('(') | |
| 318 | + if start == -1: break | ||
| 318 | 319 | end = colData.find(')', start) | |
| 320 | + if end == -1: break | ||
| 319 | 321 | colData = colData[:start] + colData[end+1:] | |
| 320 | 322 | results = [] | |
| 321 | 323 | for colDesc in colData.split(','): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments