[Quickfix-developers] MySQLStore: SQL statements exchanged
Brought to you by:
orenmnero
From: Pasquale d'A. <pas...@ga...> - 2004-06-04 22:34:49
|
I think the "UPDATE" statements in functions = MySQLStore::setNextSenderMsgSeqNum() and = MySQLStore::setNextTargetMsgSeqNum() have been exchanged. setNextSenderMsgSeqNum() must set the field "outgoing_seqnum" while = setNextTargetMsgSeqNum() must set the field "incoming_seqnum", I = suppose. Here is the wrong code: void MySQLStore::setNextSenderMsgSeqNum( int value ) throw ( = IOException& ) {=20 ..... query << "UPDATE sessions SET incoming_seqnum=3D" << value << " = WHERE " ... } void MySQLStore::setNextTargetMsgSeqNum( int value ) throw ( = IOException& ) {=20 .... query << "UPDATE sessions SET outgoing_seqnum=3D" << value << " = WHERE " ... } Regards. Pasquale d'Aloise |