diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 2772809b4e2050f72710722354bf93632450d421..c9a8e47b895edb7d26b085c191723d60389713c6 100644
--- a/src/interfaces/python/pgdb.py
+++ b/src/interfaces/python/pgdb.py
@@ -379,9 +379,8 @@ def connect(dsn = None, user = None, password = None, host = None, database = No
 		dbuser = None
 
 	# open the connection
-	cnx = _pg.connect(host = dbhost, dbname = dbbase, port = dbport,
-						opt = dbopt, tty = dbtty,
-						user = dbuser, passwd = dbpasswd)
+	cnx = _pg.connect(dbbase, dbhost, dbport, dbopt,
+		dbtty, dbuser, dbpasswd)
 	return pgdbCnx(cnx)
 
 ### types handling