]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Update accounting queries to use NOW(), too. Addresses #786
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Sep 2014 12:56:05 +0000 (08:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Sep 2014 12:56:05 +0000 (08:56 -0400)
raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf

index 3ca8c931c986012761fe5e699c5aba393527b523..6cd3b6e5e5a436d5c05a6ac422acbeb151e20dd7 100644 (file)
@@ -14,7 +14,7 @@
 #              pool_key = 0, \
 #              callingstationid = '', \
 #              username = '', \
-#              expiry_time = NULL \
+#              expiry_time = NOW() \
 #      WHERE pool_key = '${pool_key}'"
 
 #
@@ -118,7 +118,7 @@ stop_clear = "UPDATE ${ippool_table} \
                pool_key = 0, \
                callingstationid = '', \
                username = '', \
-               expiry_time = NULL \
+               expiry_time = NOW() \
        WHERE nasipaddress = '%{Nas-IP-Address}' \
        AND pool_key = '${pool_key}' \
        AND username = '%{User-Name}' \
@@ -150,7 +150,7 @@ on_clear = "\
                pool_key = 0, \
                callingstationid = '', \
                username = '', \
-               expiry_time = NULL \
+               expiry_time = NOW() \
        WHERE nasipaddress = '%{Nas-IP-Address}'"
 
 #
@@ -164,5 +164,5 @@ off_clear = "\
                pool_key = 0, \
                callingstationid = '', \
                username = '', \
-               expiry_time = NULL \
+               expiry_time = NOW() \
        WHERE nasipaddress = '%{Nas-IP-Address}'"