[Asterisk-cvs] asterisk/res res_config_odbc.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Thu Jul 8 09:32:18 CDT 2004


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv4267/res

Modified Files:
	res_config_odbc.c 
Log Message:
Merge bkw_'s ODBC patch


Index: res_config_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_config_odbc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- res_config_odbc.c	22 Jun 2004 18:49:00 -0000	1.2
+++ res_config_odbc.c	8 Jul 2004 13:18:04 -0000	1.3
@@ -111,7 +111,7 @@
   SQLBindCol(stmt,7,SQL_C_CHAR,&var_name,sizeof(var_name),&err);
   SQLBindCol(stmt,8,SQL_C_CHAR,&var_val,sizeof(var_val),&err);
 	
-  sprintf(sql,"select * from %s where filename='%s' and commented=0 order by filename,cat_metric,var_metric,id",table,file);
+  sprintf(sql,"select * from %s where filename='%s' and commented=0 order by filename,cat_metric desc,var_metric asc,id",table,file);
   res = SQLExecDirect(stmt,sql,SQL_NTS);
 	
   if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {




More information about the svn-commits mailing list