Update SQL insert query in test to be compatible with old version of SQLite that...
authorPhilippe Wooding <philippe.wooding@networkradius.com>
Sun, 17 May 2015 09:18:14 +0000 (11:18 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 2 Jun 2015 18:35:58 +0000 (14:35 -0400)
src/tests/modules/sql/auth.unlang

index 361a768..0cb9aed 100644 (file)
@@ -12,7 +12,17 @@ else {
 }
 
 update {
-       Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'NAS-IP-Address', '==', '1.2.3.4'), ('foo', 'Cleartext-Password', ':=', 'password')}"
+       Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'NAS-IP-Address', '==', '1.2.3.4')}"
+}
+if (!&Tmp-String-0) {
+       test_fail
+}
+else {
+       test_pass
+}
+
+update {
+       Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'Cleartext-Password', ':=', 'password')}"
 }
 if (!&Tmp-String-0) {
        test_fail