From: Alan T. DeKok Date: Thu, 9 Dec 2010 10:08:46 +0000 (+0100) Subject: =NULL for UODATE, "IS NULL" for SELECT X-Git-Tag: release_2_1_11~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a777a1c5219879c4233ad0cd59fa758b04263bc;p=thirdparty%2Ffreeradius-server.git =NULL for UODATE, "IS NULL" for SELECT Closes bug #129 --- diff --git a/raddb/sql/mysql/ippool.conf b/raddb/sql/mysql/ippool.conf index a558eca8565..f27d615822d 100644 --- a/raddb/sql/mysql/ippool.conf +++ b/raddb/sql/mysql/ippool.conf @@ -8,7 +8,7 @@ # allocate-clear = "UPDATE ${ippool_table} \ # SET nasipaddress = '', pool_key = 0, \ # callingstationid = '', username = '', \ -# expiry_time IS NULL \ +# expiry_time = NULL \ # WHERE pool_key = '${pool-key}'" ## This series of queries allocates an IP address @@ -19,7 +19,7 @@ allocate-clear = "UPDATE ${ippool_table} \ SET nasipaddress = '', pool_key = 0, \ callingstationid = '', username = '', \ - expiry_time IS NULL \ + expiry_time = NULL \ WHERE expiry_time <= NOW() - INTERVAL 1 SECOND \ AND nasipaddress = '%{Nas-IP-Address}'" @@ -76,7 +76,7 @@ start-update = "UPDATE ${ippool_table} \ ## STOP record arrives stop-clear = "UPDATE ${ippool_table} \ SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', \ - expiry_time IS NULL \ + expiry_time = NULL \ WHERE nasipaddress = '%{Nas-IP-Address}' AND pool_key = '${pool-key}' \ AND username = '%{User-Name}' \ AND callingstationid = '%{Calling-Station-Id}' \ @@ -99,13 +99,13 @@ alive-update = "UPDATE ${ippool_table} \ ## NAS when an accounting ON record arrives on-clear = "UPDATE ${ippool_table} \ SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', \ - expiry_time IS NULL \ + expiry_time = NULL \ WHERE nasipaddress = '%{Nas-IP-Address}'" ## This series of queries frees the IP numbers allocate to a ## NAS when an accounting OFF record arrives off-clear = "UPDATE ${ippool_table} \ SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', \ - expiry_time IS NULL \ + expiry_time = NULL \ WHERE nasipaddress = '%{Nas-IP-Address}'"