From 1c2b176d628185a747206b459e682a85ac787f61 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 9 Dec 2009 00:41:55 +0100 Subject: [PATCH] bugfix: inconsequent tuple usage --- src/db_postgres.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db_postgres.nim b/src/db_postgres.nim index b9d0b068f5..7cd93a5404 100755 --- a/src/db_postgres.nim +++ b/src/db_postgres.nim @@ -164,7 +164,7 @@ proc dbClose*(db: TDbConn) = if db != nil: PQfinish(db) proc dbOpen*(connection, user, password, database: string): TDbConn = - ## opens a database connection. Returns nil in case of an error. + ## opens a database connection. result = PQsetdbLogin(nil, nil, nil, nil, database, user, password) if PQStatus(result) != CONNECTION_OK: dbError(result) # result = nil