upgrade/fixes for direct DBMS access

This commit is contained in:
Miroslav Stampar
2012-02-07 10:46:55 +00:00
parent af71e3c563
commit f7bf1fbe94
9 changed files with 33 additions and 27 deletions

View File

@@ -897,7 +897,7 @@ class Enumeration:
value = map(lambda x: (dbs[0], x), value)
for db, table in filterPairValues(value):
db = safeSQLIdentificatorNaming(unArrayizeValue(db))
db = safeSQLIdentificatorNaming(db)
table = safeSQLIdentificatorNaming(table, True)
if not kb.data.cachedTables.has_key(db):
@@ -1654,6 +1654,10 @@ class Enumeration:
else:
colEntry = entry[index] if index < len(entry) else u''
if colEntry is None:
import pdb
pdb.set_trace()
colEntryLen = len(getUnicode(colEntry))
maxLen = max(colLen, colEntryLen)