Re: SQL results going ... wrong

2011-04-15 Thread Stefan Winter
Hi, > Maybe try an strace or gdb w/ breakpoint. > > Is there any possibility you're pulling an attribute of >253 bytes > from the database, which might be stomping the stack? IIRC rlm_sql > should prevent that itself, but maybe there are holes in the code. Good idea, but that wasn't it... A mix o

Re: SQL results going ... wrong

2011-04-15 Thread Phil Mayers
On 04/15/2011 06:57 AM, Stefan Winter wrote: Hi, Thu Apr 14 15:43:07 2011 : Error: rlm_sql: Invalid operator "?x�{?(�{?@�{?D�{?<�{?D�{?Z�{?]�{?v�{?swinter" for attribute += Thu Apr 14 15:43:07 2011 : Error: rlm_sql (sql-aai): Error getting data from database Thu Apr 14 15:43:07 2011 : Error: [s

Re: SQL results going ... wrong

2011-04-14 Thread Stefan Winter
Hi, >> Thu Apr 14 15:43:07 2011 : Error: rlm_sql: Invalid operator >> "?x�{?(�{?@�{?D�{?<�{?D�{?Z�{?]�{?v�{?swinter" for attribute += >> Thu Apr 14 15:43:07 2011 : Error: rlm_sql (sql-aai): Error getting data >> from database >> Thu Apr 14 15:43:07 2011 : Error: [sql-aai] SQL query error; >> rejec

Re: SQL results going ... wrong

2011-04-14 Thread Guy Fraser
What character set encodings are you using for the database? I suspect the database is set UTF8 and your default character encoding on the system you are developing FreeRadius is different. You can check the MySQL like this : mysql> show variables like 'character_%' ; +--

SQL results going ... wrong

2011-04-14 Thread Stefan Winter
Hi, I'm just implementing a new virtual server with a slightly complex query and sizable result set coming back in radreply. The query goes out as expected, and the MySQL reply is well-formed and looks as expected in wireshark when it comes back. But the debug output is ... interesting: Thu Apr 1