SQL Unlang !
Suman Dash
suman at clydontech.com
Wed Mar 16 13:44:51 CET 2011
I am looking forward for a short example on how to store a SQL query to
a variable which can be used in next condition in UNLANG.
I have no knowledge of unlang but i got a fair amount of idea with the
condition checks , just need a little insight on the result stores .
For Ex.
result1 = {some sql query}
result2 = {some sql query}
update control
Session-Timeout := Result1 - Result 2
Thanks in advance
Suman
On 3/16/2011 4:09 PM, Alan DeKok wrote:
> Suman Dash wrote:
>> Hi Alan,
>>
>> Did you managed to look into the issue ?
> No.
>
>> or maybe any hints on how to use DATETIME in Expiration instead of String ?
> Honestly, in 2.1.10, you can just write SELECT statements directly in
> "unlang".
>
> update reply {
> Session-Timeout := "%{sql: SELECT ...}"
> }
>
> Couple that with a few other things, and you should be able to replace
> the sqlcounter module entirely.
>
> i.e. I don't use that module, and I know little or nothing about it.
> I have little time to do anything with it.
>
> Alan DeKok.
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 5924 (20110303) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110316/79ef9980/attachment.html>
More information about the Freeradius-Users
mailing list