[asterisk-commits] tilghman: branch 1.6.1 r253759 - in /branches/1.6.1: ./ contrib/scripts/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 22 14:06:31 CDT 2010


Author: tilghman
Date: Mon Mar 22 14:06:27 2010
New Revision: 253759

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

........
  r253758 | tilghman | 2010-03-22 14:05:27 -0500 (Mon, 22 Mar 2010) | 2 lines
  
  Update query should be an UPDATE, not a SELECT.
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/contrib/scripts/dbsep.cgi

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

Modified: branches/1.6.1/contrib/scripts/dbsep.cgi
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/contrib/scripts/dbsep.cgi?view=diff&rev=253759&r1=253758&r2=253759
==============================================================================
--- branches/1.6.1/contrib/scripts/dbsep.cgi (original)
+++ branches/1.6.1/contrib/scripts/dbsep.cgi Mon Mar 22 14:06:27 2010
@@ -99,7 +99,7 @@
 		}
 		$get{$name}++;
 	}
-	$sql = "SELECT " . join(",", cgi_to_where_clause($cgi, \%cfg, \%get)) . " FROM $table WHERE " . join(" AND ", @get);
+	$sql = "UPDATE $table SET " . join(",", cgi_to_where_clause($cgi, \%cfg, \%get)) . " WHERE " . join(" AND ", @get);
 	$dbh = DBI->connect($cfg{dsn}, $cfg{dbuser}, $cfg{dbpass});
 	$affected = $dbh->do($sql);
 	$dbh->disconnect();




More information about the asterisk-commits mailing list