diff --git a/private/connection.nim b/private/connection.nim index bf7a3ed..7add712 100644 --- a/private/connection.nim +++ b/private/connection.nim @@ -122,7 +122,7 @@ proc newRethinkClient*(address = "127.0.0.1", port = Port(28015), db: string = " result.sockConnected = false result.queryToken = 0 - if not db.isNil and db != "": + if db != "": result.use(db) when not compileOption("threads"): proc handshake(r: RethinkClient) {.async.} = diff --git a/rethinkdb.nimble b/rethinkdb.nimble index 89179b1..bd6e1c5 100644 --- a/rethinkdb.nimble +++ b/rethinkdb.nimble @@ -1,4 +1,4 @@ -version = "0.2.3.3" +version = "0.2.3.4" author = "Huy Doan" description = "RethinkDB driver for Nim" license = "MIT"