[asterisk-commits] elguero: trunk r388375 - /trunk/res/res_config_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 10 15:28:20 CDT 2013


Author: elguero
Date: Fri May 10 15:28:18 2013
New Revision: 388375

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388375
Log:
Fix Finding Extensions With Patterns Using ODBC Realtime

After the merge of support for the realtime sorcery module, extensions that
contained a pattern were not being found through odbc realtime.  It was tracked
down to this one line that was advancing to the next variable list before it
should have been.  The removal of this one line fixes this.

Tested this fix on my machine.

Received confirmation that this is the right fix from file on IRC.

Modified:
    trunk/res/res_config_odbc.c

Modified: trunk/res/res_config_odbc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_config_odbc.c?view=diff&rev=388375&r1=388374&r2=388375
==============================================================================
--- trunk/res/res_config_odbc.c (original)
+++ trunk/res/res_config_odbc.c Fri May 10 15:28:18 2013
@@ -340,7 +340,6 @@
 		*op = '\0';
 	}
 
-	field = field->next;
 	op = !strchr(field->name, ' ') ? " =" : "";
 	snprintf(sql, sizeof(sql), "SELECT * FROM %s WHERE %s%s ?%s", table, field->name, op,
 		strcasestr(field->name, "LIKE") && !ast_odbc_backslash_is_escape(obj) ? " ESCAPE '\\'" : "");




More information about the asterisk-commits mailing list