Author: phd
Date: 2008-07-24 10:08:28 -0600 (Thu, 24 Jul 2008)
New Revision: 3527
Modified:
SQLObject/branches/0.10/docs/News.txt
SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py
Log:
Fixed the bug 2009801: sqlobject-admin fails to process sqlite database with enums.
Modified: SQLObject/branches/0.10/docs/News.txt
===================================================================
--- SQLObject/branches/0.10/docs/News.txt 2008-07-24 16:07:16 UTC (rev 3526)
+++ SQLObject/branches/0.10/docs/News.txt 2008-07-24 16:08:28 UTC (rev 3527)
@@ -106,6 +106,8 @@
* Added test_default_style.py.
+* Fixed a minor bug in SQLiteConnection that fails to parse Enum columns.
+
SQLObject 0.9.7
===============
Modified: SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py
===================================================================
--- SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py 2008-07-24 16:07:16 UTC (rev 3526)
+++ SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py 2008-07-24 16:08:28 UTC (rev 3527)
@@ -308,9 +308,9 @@
raise ValueError('The table %s ws not found in the database. Load failed.' % tableName)
colData = colData[0].split('(', 1)[1].strip()[:-2]
while colData.find('(') > -1:
- st = colData.find('(')
- en = colData.find(')')
- colData = colData[:st] + colData[en+1:]
+ start = colData.find('(')
+ end = colData.find(')', start)
+ colData = colData[:start] + colData[end+1:]
results = []
for colDesc in colData.split(','):
parts = colDesc.strip().split(' ', 2)
|