run multiple sql queries

Imdad Hasan imdadalikadiwala0 at gmail.com
Mon Mar 15 12:08:44 CET 2021


can i use unlang for run another queries in accounting section?

like this








*switch "%{Acct-Status-Type}" {        case 'Stop' {            update
control {                  Tmp-String-0 := "%{sql:UPDATE `usage` SET
acctinputoctets = acctinputoctets + '%{Acct-Input-Octets}',
acctoutputoctets = acctoutputoctets + '%{Acct-Output-Octets}', lastupdated
= now() WHERE username = '%{User-Name}'}"            }              } }*

On Sat, Mar 13, 2021 at 2:41 AM Imdad Hasan <imdadalikadiwala0 at gmail.com>
wrote:

> Hii all,
>
> Can i run multiple sql queries at a time in freeradius sql module.?
> specifically for accounting. for manage accounting data in different
> different tables.
>
> Thanks
>


More information about the Freeradius-Users mailing list