minor update regarding --current-db on Oracle

This commit is contained in:
Miroslav Stampar
2011-04-01 15:56:11 +00:00
parent eb99f68a7a
commit e27afef6be
3 changed files with 10 additions and 7 deletions

View File

@@ -104,17 +104,13 @@ class Dump:
self.string("current user", data)
def currentDb(self,data):
if Backend.getIdentifiedDbms() in (DBMS.MAXDB, DBMS.ORACLE):
if Backend.getIdentifiedDbms() == DBMS.MAXDB:
self.string("current database (no practical usage on %s)" % Backend.getIdentifiedDbms(), data)
elif Backend.getIdentifiedDbms() == DBMS.ORACLE:
self.string("current schema (equivalent to database on %s)" % Backend.getIdentifiedDbms(), data)
else:
self.string("current database", data)
if Backend.getIdentifiedDbms() in (DBMS.ORACLE):
warnMsg = "on %s you have to use switch '--current-user' to " % Backend.getIdentifiedDbms()
warnMsg += "retrieve current schema name which can be used "
warnMsg += "as an equivalent to database name (-D) in further runs"
logger.warning(warnMsg)
def dba(self,data):
self.string("current user is DBA", data)