change "AcctSession-Time = 0" to "AcctSession-Time = IS NULL" due to schema change
authorpnixon <pnixon>
Tue, 15 Jul 2003 12:03:27 +0000 (12:03 +0000)
committerpnixon <pnixon>
Tue, 15 Jul 2003 12:03:27 +0000 (12:03 +0000)
raddb/postgresql.conf

index 152bcd0..81c2f19 100644 (file)
@@ -161,7 +161,7 @@ sql {
                SET AcctStopTime = (now() - '%{Acct-Delay-Time:-0}'::interval), \
                AcctSessionTime = (now()::timestamp with time zone - AcctStartTime::timestamp with time zone - '%{Acct-Delay-Time:-0}'::interval), \
                AcctTerminateCause='%{Acct-Terminate-Cause}', AcctStopDelay = '%{Acct-Delay-Time:-0}' \
-               WHERE AcctSessionTime=0 AND AcctStopTime IS NULL AND NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime <= now()"
+               WHERE AcctSessionTime IS NULL AND AcctStopTime IS NULL AND NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime <= now()"
 
        accounting_update_query = "UPDATE ${acct_table1} \
                SET FramedIPAddress = NULLIF('%{Framed-IP-Address}', '')::inet \