[asterisk-commits] irroot: branch 10 r334455 - in /branches/10: ./ apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 6 08:59:04 CDT 2011
Author: irroot
Date: Tue Sep 6 08:58:56 2011
New Revision: 334455
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=334455
Log:
Merged revisions 334453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r334453 | irroot | 2011-09-06 15:48:03 +0200 (Tue, 06 Sep 2011) | 13 lines
Make SQL query in app_voicemail.c portable LIMIT is not portable.
Regression from r312212
(closes issue ASTERISK-18255)
Reported by: Leif Madsen
Tested by: Leif Madsen
Review: https://reviewboard.asterisk.org/r/1415/
........
Modified:
branches/10/ (props changed)
branches/10/apps/app_voicemail.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_voicemail.c?view=diff&rev=334455&r1=334454&r2=334455
==============================================================================
--- branches/10/apps/app_voicemail.c (original)
+++ branches/10/apps/app_voicemail.c Tue Sep 6 08:58:56 2011
@@ -3483,7 +3483,7 @@
struct odbc_obj *obj;
obj = ast_odbc_request_obj(odbc_database, 0);
if (obj) {
- snprintf(sql, sizeof(sql), "SELECT msgnum FROM %s WHERE dir=? order by msgnum desc limit 1", odbc_table);
+ snprintf(sql, sizeof(sql), "SELECT msgnum FROM %s WHERE dir=? order by msgnum desc", odbc_table);
stmt = ast_odbc_prepare_and_execute(obj, generic_prepare, &gps);
if (!stmt) {
More information about the asterisk-commits
mailing list