개정판 4fa60948
issue #000: fix table load
Change-Id: Icba257cbb3afe3909a27940a4ec65ba7f95ea03c
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
2161 | 2161 |
sql = "select name from sqlite_master where type='table'"# AND name={}".format(property) |
2162 | 2162 |
cursor.execute(sql) |
2163 | 2163 |
rows = cursor.fetchall() |
2164 |
if property in [name[0] for name in rows]:
|
|
2164 |
if property.upper() in [name[0].upper() for name in rows]:
|
|
2165 | 2165 |
sql = 'select uid, code, description, Allowables from [{}] order by length(code) DESC'.format(property) |
2166 | 2166 |
cursor.execute(sql) |
2167 | 2167 |
rows = cursor.fetchall() |
내보내기 Unified diff