Author: phd
Date: 2005-04-05 16:40:42 +0000 (Tue, 05 Apr 2005)
New Revision: 716
Modified:
trunk/SQLObject/sqlobject/firebird/firebirdconnection.py
Log:
Fixed a bug reported as bug 1169875.
Modified: trunk/SQLObject/sqlobject/firebird/firebirdconnection.py
===================================================================
--- trunk/SQLObject/sqlobject/firebird/firebirdconnection.py 2005-04-05 14:57:46 UTC (rev 715)
+++ trunk/SQLObject/sqlobject/firebird/firebirdconnection.py 2005-04-05 16:40:42 UTC (rev 716)
@@ -42,6 +42,9 @@
password = 'masterkey'
if not auth:
auth='sysdba'
+ if os.name == 'nt' and path[0] == '/':
+ # strip the leading slash off of db name/alias
+ path = path[1:]
path = path.replace('/', os.sep)
return cls(host, db=path, user=auth, passwd=password, **args)
connectionFromURI = classmethod(connectionFromURI)
|