-
The below code is returning 1 when record is inserted, but it returns 2 when it updates a record. Is this value being picked from what the driver provides? handle.createUpdate("""insert into tbl1(id, data, last_updated_ts) values (?,?, now())
on duplicate key
update data = ? , last_updated_ts = now()
""")
.bind(0,id)
.bind(1,data)
.bind(2,data)
.execute() |
Beta Was this translation helpful? Give feedback.
Answered by
metaforte
Mar 9, 2024
Replies: 1 comment
-
It's driver's behaviour. Tried |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
metaforte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's driver's behaviour. Tried
stmt.executeUpdate()