Skip to content

Commit

Permalink
Fix incompitable version of nim cause a compilation error + export json
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyelg committed Sep 13, 2018
1 parent 1a50b0c commit d7b58ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion db_presto.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import httpclient, base64, json, strutils, sequtils
export json

type
CursorAlreadyClosedException = object of Exception
Expand Down Expand Up @@ -99,7 +100,7 @@ proc dbFormat(formatstr: SqlQuery, args: varargs[string]): string =
var a = 0
for c in items(string(formatstr)):
if c == '?':
if args[a] == nil:
if args[a] == "":
add(result, "NULL")
else:
add(result, dbQuote(args[a]))
Expand Down
4 changes: 2 additions & 2 deletions db_presto.nimble
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Package

version = "1.0.1"
version = "1.1.0"
author = "Bennyelg"
description = "prestodb connector"
license = "MIT"
skipDirs = @["tests"]
# Dependencies

requires "nim >= 0.17.2"
requires "nim >= 0.18.0"

0 comments on commit d7b58ef

Please sign in to comment.