[asterisk-commits] tilghman: branch 1.6.2 r253760 - in /branches/1.6.2: ./ contrib/scripts/

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


Author: tilghman
Date: Mon Mar 22 14:06:36 2010
New Revision: 253760

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253760
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.2/   (props changed)
    branches/1.6.2/contrib/scripts/dbsep.cgi

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

Modified: branches/1.6.2/contrib/scripts/dbsep.cgi
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/contrib/scripts/dbsep.cgi?view=diff&rev=253760&r1=253759&r2=253760
==============================================================================
--- branches/1.6.2/contrib/scripts/dbsep.cgi (original)
+++ branches/1.6.2/contrib/scripts/dbsep.cgi Mon Mar 22 14:06:36 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