dabo Commit
Revision 6447
Date: 2011-02-18 14:35:20 -0800 (Fri, 18 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6447

Changed:
U   trunk/dabo/db/dbFirebird.py

Log:
Fix the connection port parameter support for FirebirdSQL.

Diff:
Modified: trunk/dabo/db/dbFirebird.py
===================================================================
--- trunk/dabo/db/dbFirebird.py 2011-02-18 14:17:19 UTC (rev 6446)
+++ trunk/dabo/db/dbFirebird.py 2011-02-18 22:35:20 UTC (rev 6447)
@@ -46,11 +46,11 @@
 
 
        def getConnection(self, connectInfo, **kwargs):
-               port = connectInfo.Port
-               if not port:
-                       port = 3050
                # kinterbasdb will barf with unicode strings for user nad 
password:
                host = ustr(connectInfo.Host)
+               port = connectInfo.Port
+               if port:
+                       host = "%s/%s" % (host, port)
                user = str(connectInfo.User)
                password = str(connectInfo.revealPW())
                database = ustr(connectInfo.Database)



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to