Skip to content
Snippets Groups Projects
Commit a770da9d authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Back out python change, needs delay.

parent 3cd9399d
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ class pgdbCnx:
### module interface
# connects to a database
def connect(dsn = None, user = None, password = None, xhost = None, database = None):
def connect(dsn = None, user = None, password = None, host = None, database = None):
# first get params from DSN
dbport = -1
dbhost = ""
......@@ -364,9 +364,9 @@ def connect(dsn = None, user = None, password = None, xhost = None, database = N
dbpasswd = password
if database != None:
dbbase = database
if xhost != None:
if host != None:
try:
params = string.split(xhost, ":")
params = string.split(host, ":")
dbhost = params[0]
dbport = int(params[1])
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment