how to NOT expand varaibles in a sql-query

info at w3welt.de info at w3welt.de
Wed Nov 8 18:12:28 CET 2006


Hello,

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-00.06.18.000000'
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
percentage-signs.
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...

Yours
    Olaf Kolling

--

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




More information about the Freeradius-Users mailing list