Hello!
Today I discovered a problem: Sometimes Acct Stop records coming
BEFORE Acct Start records. This is a problem for me as soon as I use
"radacct" database where each session stored in _one_ record. "Start"
records inserted into database with "insert" SQL query, and "Stop"
records inserted in the same record later with "update" SQL query. If
"Stop" record appears before "Start", there is no records to update in
database. Later, when "Start" record comes in, it will be inserted
into database, but "Stop" record already lost :( So I have unfinished
sessions.
The question is how to avoid this problem? Is it possible to check
if "update" was successful and if not, perform "insert" SQL query?
Something like "update blah-blah-blah || insert blah-blah-blah".
Any suggestions?
--
________________________________________________________
Regards, Dmitry Niqiforoff [tel. +7 8462 427427]
Kraft-S, Ltd.
Samara, Russia
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.