From: Alan T. DeKok Date: Tue, 25 May 2021 12:57:17 +0000 (-0400) Subject: remove unused query X-Git-Tag: release_3_0_23~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad96a9274ae473022973424af1dca3a2167e316c;p=thirdparty%2Ffreeradius-server.git remove unused query --- diff --git a/raddb/mods-config/sql/main/sqlite/queries.conf b/raddb/mods-config/sql/main/sqlite/queries.conf index 5a6decc6f47..743a8d6877d 100644 --- a/raddb/mods-config/sql/main/sqlite/queries.conf +++ b/raddb/mods-config/sql/main/sqlite/queries.conf @@ -295,59 +295,6 @@ accounting { query = "${..accounting-on.query}" } - # - # Implement the "sql_session_start" policy. - # See raddb/policy.d/accounting for more details. - # - # You also need to fix the other queries as - # documented below. Look for "sql_session_start". - # - post-auth { - query = "\ - INSERT INTO ${....acct_table1} \ - (${...column_list}) \ - VALUES(\ - '%{Acct-Session-Id}', \ - '%{Acct-Unique-Session-Id}', \ - '%{SQL-User-Name}', \ - '%{Realm}', \ - '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}', \ - NULLIF('%{%{NAS-Port-ID}:-%{NAS-Port}}', ''), \ - '%{NAS-Port-Type}', \ - ${....event_timestamp}, \ - NULL, \ - NULL, \ - 0, \ - '', \ - '%{Connect-Info}', \ - NULL, \ - 0, \ - 0, \ - '%{Called-Station-Id}', \ - '%{Calling-Station-Id}', \ - NULL, \ - '%{Service-Type}', \ - NULL, \ - '', \ - '', \ - '', \ - '', \ - '' \ - ${....class.reply_xlat})" - - query = "\ - UPDATE ${....acct_table1} SET \ - AcctStartTime = ${....event_timestamp}, \ - AcctUpdateTime = ${....event_timestamp}, \ - ConnectInfo_start = '%{Connect-Info}', \ - AcctSessionId = '%{Acct-Session-Id}' \ - WHERE UserName = '%{SQL-User-Name}' \ - AND NASIPAddress = '%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}}' \ - AND NASPortId = '%{%{NAS-Port-ID}:-%{NAS-Port}}' \ - AND NASPortType = '%{NAS-Port-Type}' \ - AND AcctStopTime IS NULL" - } - start { # # Insert a new record into the sessions table