Mysql + JDBC: return value of INSERT ON DUPLICATE KEY does not match Mysql documentation -



Mysql + JDBC: return value of INSERT ON DUPLICATE KEY does not match Mysql documentation -

when execute insert on duplicate key update (iodku) in mysql command line interface, returns 2 rows updated, when insert hits duplicate key constraint.

in jdbc returns 3 rows updated.

has experienced similar?

running mysql 5.1 mysql connector/j 5.1.14. bug report: http://bugs.mysql.com/61850

example query:

insert session (tstamp, session_id, key1, key2, key3) values ('2011-07-13 10:08:01', 2, 21, 22, 23) on duplicate key update tstamp='2011-07-13 10:08:01'

it bug in mysql. see bug reports http://bugs.mysql.com/bug.php?id=61850 , http://bugs.mysql.com/bug.php?id=46675.

mysql jdbc

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -