>From 19196259c9551ac6ac4c358fc1f163f972cfc63c Mon Sep 17 00:00:00 2001
From: Chris Moules <chris@gms.lu>
Date: Wed, 18 Feb 2009 12:44:38 +0000
Subject: [PATCH] Fix typo in MySQL ippool.conf and revert change from privous patch that modified one too many statements with "IS NULL" => "= NULL". One of these was in a WHERE clause where the "IS NULL" syntax is correct and needed.

---
 raddb/sql/mysql/ippool.conf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/raddb/sql/mysql/ippool.conf b/raddb/sql/mysql/ippool.conf
index e6b6dfe..f93d7d1 100644
--- a/raddb/sql/mysql/ippool.conf
+++ b/raddb/sql/mysql/ippool.conf
@@ -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"
 
 
 
-- 
1.5.6.5

