We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9bd3a9 commit b26b08aCopy full SHA for b26b08a
src/tink/sql/drivers/node/CockroachDb.hx
@@ -122,7 +122,7 @@ class CockroachDbConnection<Db> implements Connection<Db> implements Sanitizer {
122
if (Int64.isInt64(v))
123
return Int64.toStr(v);
124
if (Std.is(v, Date))
125
- return '(${(v : Date).getTime() / 1000})::timestamptz';
+ return '(${Math.round((v : Date).getTime() / 1000)})::timestamptz';
126
if (Std.is(v, String))
127
return Client.escapeLiteral(v);
128
if (Std.is(v, Bytes))
0 commit comments