changeset 321:0c83ddee3a5c

trail tnsname with slash to attach mode parameter to url login
author Catherine Devlin <catherine.devlin@gmail.com>
date Wed, 01 Apr 2009 14:48:05 -0400
parents af4106fca5d9
children d791333902f7
files sqlpython/sqlpython.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/sqlpython.py	Wed Apr 01 14:11:23 2009 -0400
+++ b/sqlpython/sqlpython.py	Wed Apr 01 14:48:05 2009 -0400
@@ -112,7 +112,7 @@
         if orauser.upper() == 'SYS' and not modeval:
             print 'Privilege not specified for SYS, assuming SYSOPER'
             modeval = cx_Oracle.SYSOPER
-        result = self.url_connect('oracle://%s:%s@%s?mode=%d' % (orauser, orapass, oraserv, modeval))
+        result = self.url_connect('oracle://%s:%s@%s/?mode=%d' % (orauser, orapass, oraserv, modeval))
         result['dbname'] = oraserv
         return result