how to NOT expand varaibles in a sql-query

info at info at
Wed Nov 8 18:12:28 CET 2006


i need to pass the string '%d %b %Y %T' inside a query to mysql (as a
date format). Unfortunately this gets expanded to
'07 0 2006 2006-11-07-'
which leads to an sql error and crashes freeradius with a
segmentation fault.

I found a post from Nicolas Baradakis who advises to double the
I tried this too, but this creates a string like this
'%0d %0b %0Y %0T'
which again leads to a sql error (but without crash)

How can i pass this string literaly without any variable-substitution?
I'm running "FreeRADIUS Version 1.0.0"

Thanks in advance for your help...

    Olaf Kolling


                       W³Welt Web-Entwicklung
Olaf Kolling                            eMail:
Mörikestraße 67                 Tel.: +49 711 96666-200
70199 Stuttgart                           Fax: +49 711 96666-201

More information about the Freeradius-Users mailing list