469,946 Members | 1,997 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Error handling when adding duplicate entry

I have an application with MS Access 2000 as the front end and MySQL as the
back end. All was well until I upgraded the MySQL (Linux) server.

The Problem: I insert data into a cumulative table. Before when I did
this, and there were duplicate entries, the duplicate entries were rejected
and I got a return code with the number of affected rows (number added).
Now, I get a MyODBC error and the application stops when trying to add
duplicate entries. - previous ver MySQL that did not return error - current ver MySQL that returns error.

The MyODBC was not updated on the client (Windows) computer. However, I
tried updating MyODBC from ver 2.50.39 to ver 3.51.03 with no change in
results. So I am guessing that MySQL has changed what it passes to MyODBC
when it encounters this condition.

How can I set MySQL (or MyODBC or whatever) so that the insert query does
not halt the insert when it encounters a duplicate entry?

Thanks for any information.

To reply, remove the XXX from garyXXXlund
Jul 19 '05 #1
0 2847

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wayno | last post: by
3 posts views Thread by WindAndWaves | last post: by
8 posts views Thread by jcrouse | last post: by
5 posts views Thread by baur79 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.