Skip to content

Commit

Permalink
moigagoo#159 fixed tdbtypes test for postgres
Browse files Browse the repository at this point in the history
The field there now requires quotation marks around itself.
This is likely because in the SELECT bit of the query the fields are
also provided with quotation marks.
  • Loading branch information
PhilippMDoerner committed Aug 22, 2022
1 parent 12cf790 commit 44af681
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/postgres/tdbtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import norm/[model, postgres, types]

import ../models


const
dbHost = "postgres"
dbUser = "postgres"
Expand Down Expand Up @@ -33,7 +32,7 @@ suite "Import dbTypes from norm/private/postgres/dbtypes":

test "dbValue[DateTime] is imported":
let users = @[newUser()].dup:
dbConn.select("""lastLogin <= $1""", ?now())
dbConn.select(""""lastLogin" <= $1""", ?now())

check len(users) == 0

Expand Down

0 comments on commit 44af681

Please sign in to comment.