I am trying to executemany in python with on duplicate key update, with the following script:
# data from a previous query (returns 4 integers in each row) r
It is a bug of mysqldb as ubuntu said, sightly change the sql then it works:
insert into tb_name(col1, col2) select 1,2 on duplicate key update col1=1