Implementation for an Issue #423

This commit is contained in:
stamparm
2013-03-21 11:28:44 +01:00
parent 3740a97cc9
commit ad039c335d
4 changed files with 13 additions and 1 deletions

View File

@@ -647,7 +647,10 @@ class Agent(object):
@rtype: C{str}
"""
fromTable = fromTable or FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), "")
if conf.uFrom:
fromTable = " FROM %s" % conf.uFrom
else:
fromTable = fromTable or FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), "")
if query.startswith("SELECT "):
query = query[len("SELECT "):]