Fix typo in MySQL ippool.conf and revert change from privous patch that modified...
authorChris Moules <chris@gms.lu>
Wed, 18 Feb 2009 12:44:38 +0000 (12:44 +0000)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Feb 2009 13:46:16 +0000 (14:46 +0100)
raddb/sql/mysql/ippool.conf

index e6b6dfe..f93d7d1 100644 (file)
@@ -39,7 +39,7 @@ allocate-find = "SELECT framedipaddress FROM ${ippool_table} \
 # ## use this query instead
 # allocate-find = "SELECT framedipaddress FROM ${ippool_table} \
 #  WHERE pool_name = '%{control:Pool-Name}' \
-#  AND expiry_time =s NULL \
+#  AND expiry_time = NULL \
 #  ORDER BY RAND() \
 #  LIMIT 1 \
 #  FOR UPDATE"
@@ -59,7 +59,7 @@ allocate-update = "UPDATE ${ippool_table} \
  SET nasipaddress = '%{NAS-IP-Address}', pool_key = '${pool-key}', \
  callingstationid = '%{Calling-Station-Id}', username = '%{User-Name}', \
  expiry_time = NOW() + INTERVAL ${lease-duration} SECOND \
- WHERE framedipaddress = '%I' AND expiry_time = NULL"
+ WHERE framedipaddress = '%I' AND expiry_time IS NULL"