[asterisk-commits] tilghman: branch 1.6.2 r250916 - in /branches/1.6.2: ./ apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 4 22:43:43 CST 2010


Author: tilghman
Date: Thu Mar  4 22:43:39 2010
New Revision: 250916

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=250916
Log:
Merged revisions 250913 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r250913 | tilghman | 2010-03-04 22:37:36 -0600 (Thu, 04 Mar 2010) | 7 lines
  
  Missing quote in ODBC query.
  
  (closes issue #16953)
   Reported by: elguero
   Patches: 
         app_voicemail-odbc-syntax-fix.diff uploaded by elguero (license 37)
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_voicemail.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_voicemail.c?view=diff&rev=250916&r1=250915&r2=250916
==============================================================================
--- branches/1.6.2/apps/app_voicemail.c (original)
+++ branches/1.6.2/apps/app_voicemail.c Thu Mar  4 22:43:39 2010
@@ -4811,7 +4811,7 @@
 	obj = ast_odbc_request_obj(odbc_database, 0);
 	if (obj) {
 		if (!strcmp(folder, "INBOX")) {
-			snprintf(sql, sizeof(sql), "SELECT COUNT(*) FROM %s WHERE dir = '%s%s/%s/INBOX' OR dir = '%s%s/%s/Urgent", odbc_table, VM_SPOOL_DIR, context, mailbox, VM_SPOOL_DIR, context, mailbox);
+			snprintf(sql, sizeof(sql), "SELECT COUNT(*) FROM %s WHERE dir = '%s%s/%s/INBOX' OR dir = '%s%s/%s/Urgent'", odbc_table, VM_SPOOL_DIR, context, mailbox, VM_SPOOL_DIR, context, mailbox);
 		} else {
 			snprintf(sql, sizeof(sql), "SELECT COUNT(*) FROM %s WHERE dir = '%s%s/%s/%s'", odbc_table, VM_SPOOL_DIR, context, mailbox, folder);
 		}




More information about the asterisk-commits mailing list