Skip to content

Commit 89e7c1a

Browse files
committed
update works
1 parent d70586b commit 89e7c1a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/dialect-tests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ test({
160160
params: ['test']
161161
});
162162

163+
test({
164+
query : post.update({content: 'test', userId: 3}),
165+
pg : 'UPDATE post SET post.content = $1, post."userId" = $2',
166+
params: ['test', 3]
167+
});
168+
169+
test({
170+
query : post.update({content: 'test', userId: 3}).where(post.content.equals('no')),
171+
pg : 'UPDATE post SET post.content = $1, post."userId" = $2 WHERE (post.content = $3)',
172+
params: ['test', 3, 'no']
173+
});
174+
163175
console.log('IGNORE: parent queries');
164176
var ignore = function() {
165177
var parent = post.select(post.content);

0 commit comments

Comments
 (0)