You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just tried a workaround with InsertOrUpdate, but mysql driver is a little buggy and ExecuteNonQuery with "INSERT .. ON DUPLICATE KEY UPDATE ..." always return 1 rows affected instead 1 or 0.
"INSERT IGNORE" works fine and return 0 or 1.
The text was updated successfully, but these errors were encountered:
Hello, Igor
Can you add extension (or parameter for insert extension) to build "INSERT IGNORE INTO" sql statement, please?
This would be extremely useful for concurrent inserts into one table like this http://stackoverflow.com/a/4475904
I've just tried a workaround with InsertOrUpdate, but mysql driver is a little buggy and ExecuteNonQuery with "INSERT .. ON DUPLICATE KEY UPDATE ..." always return 1 rows affected instead 1 or 0.
"INSERT IGNORE" works fine and return 0 or 1.
The text was updated successfully, but these errors were encountered: