Skip to content

Commit

Permalink
upgrade sql-builder to fix date transfer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Jun 24, 2019
1 parent 01b9885 commit 18a8335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { decode, encode } from "https://deno.land/std/strings/mod.ts";
export { format as byteFormat } from "https://deno.land/x/[email protected]/mod.ts";
export { replaceParams } from "https://deno.land/x/[email protected].4/util.ts";
export { replaceParams } from "https://deno.land/x/[email protected].5/util.ts";
4 changes: 3 additions & 1 deletion test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ test(async function testInsert() {
});

test(async function testUpdate() {
let result = await client.execute(`update users set ?? = ? WHERE id = ?`, [
let result = await client.execute(`update users set ?? = ?, ?? = ? WHERE id = ?`, [
"name",
"MYR",
"created_at",
new Date(),
1
]);
assertEquals(result, { affectedRows: 1, lastInsertId: 0 });
Expand Down

0 comments on commit 18a8335

Please sign in to comment.