mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-01 01:21:16 +00:00
bugfix: inconsequent tuple usage
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user