RE: [Quickfix-developers] [qfj] JdbcStore.set() - Why INSERT of UPDATE fails?
Brought to you by:
orenmnero
|
From: Steve B. <st...@te...> - 2005-07-19 18:09:57
|
Hi, This is actually a question I wanted to ask about the C++ code. It appears that the set() function in MySQLStore.cpp will do an update if the insert fails. Are there situations where we expect a primary key violation and would want to overwrite the existing row or is that logic there for some other reason? Steve > -----Original Message----- > From: qui...@li... [mailto:quickfix- > dev...@li...] On Behalf Of Barry Kaplan > Sent: Tuesday, July 19, 2005 12:02 AM > To: quickfix > Subject: [Quickfix-developers] [qfj] JdbcStore.set() - Why INSERT of > UPDATE fails? > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > This method catches SQLException on the insert and then attempts an > update. There is a comment in this class asking why this is so. Is it > because this method will get called with exisitng sequence numbers > during a resend? > -- > barry kaplan > gr...@me... > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |