I am trying to migrate from version 2 to version 3.
The same unlang code worked in version 2. However in version 3 the same code does not work.
This is the error:
/etc/freeradius/sites-enabled/default[406]: Failed parsing expanded string:
/etc/freeradius/sites-enabled/default[406]: %{sql:SET @reset_date = '%{check:Reset-Date}'; SELECT IFNULL((sum(acctinputoctets)+sum(acctoutp... 
/etc/freeradius/sites-enabled/default[406]:                            ^ Unknown module
If I remove check the parser does not throw errors. 
Change '%{check:Reset-Date}' to '%{Reset-Date}'. However this will break my code, because Reset-Date is a radcheck attribute, stored in the radcheck table. 
Any ideas?
                        
It's
control:Reset-Date. We've never hadcheckas a list qualifier.Check items are specific to the users file and sql modules.