Mercurial > sqlpython
changeset 79:01d578f4e6e7
prevent crash when pull unresolved
author | catherine@DellZilla.myhome.westell.com |
---|---|
date | Mon, 28 Apr 2008 12:20:53 -0400 |
parents | 8529876f7541 |
children | 83de0cb04f12 |
files | sqlpyPlus.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpyPlus.py Sun Apr 27 08:40:28 2008 -0400 +++ b/sqlpyPlus.py Mon Apr 28 12:20:53 2008 -0400 @@ -537,6 +537,8 @@ options, arg = self.pullflags.parse(arg) object_type, owner, object_name = self.resolve(arg.strip(self.terminator).upper()) + if not object_type: + return self.stdout.write("%s %s.%s\n" % (object_type, owner, object_name)) self.stdout.write(str(self.curs.callfunc('DBMS_METADATA.GET_DDL', cx_Oracle.CLOB, [object_type, object_name, owner])))