Skip to content

Commit

Permalink
Eventing: changing insert to upsert
Browse files Browse the repository at this point in the history
Change-Id: I6d07510d43e644d0220a79beca7d035b07fd2a16
Reviewed-on: http://review.couchbase.org/c/testrunner/+/127993
Reviewed-by: <ankit.prabhu@couchbase.com>
Tested-by: vikas chaudhary <vikas.chaudhary@couchbase.com>
  • Loading branch information
vikas-getconnect committed May 13, 2020
1 parent 2484bf0 commit 1038cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytests/eventing/handler_code/n1ql_op_with_timers.js
Expand Up @@ -26,7 +26,7 @@ function timerCallback(context) {
var docID = context.docID;
while (true) {
try {
var query = INSERT INTO dst_bucket ( KEY, VALUE ) VALUES ( $docID ,'timerCallback');
var query = UPSERT INTO dst_bucket ( KEY, VALUE ) VALUES ( $docID ,'timerCallback');
break;
} catch (e) {
log(e);
Expand Down

0 comments on commit 1038cbc

Please sign in to comment.