Author: poeml Date: 2009-02-03 15:17:45 -0700 (Tue, 03 Feb 2009) New Revision: 6358 Modified: trunk/tools/download-redirector-v2/scanner/scanner.pl Log: scanner: - fix enabling servers after scan. Make it work with both PostgreSQL boolean type as well asn MySQL's tinyint. Modified: trunk/tools/download-redirector-v2/scanner/scanner.pl =================================================================== --- trunk/tools/download-redirector-v2/scanner/scanner.pl 2009-02-03 20:08:51 UTC (rev 6357) +++ trunk/tools/download-redirector-v2/scanner/scanner.pl 2009-02-03 22:17:45 UTC (rev 6358) _at_@ -346,7 +346,7 @@ } if($enable_after_scan && $file_count > 1 && !$row->{enabled}) { - $sql = "UPDATE server SET enabled = 1 WHERE id = $row->{id};"; + $sql = "UPDATE server SET enabled = '1' WHERE id = $row->{id};"; print "$sql\n" if $sqlverbose; my $sth = $dbh->prepare( $sql ); $sth->execute() or die $sth->err; _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Tue Feb 03 2009 - 22:18:23 GMT
This archive was generated by hypermail 2.3.0 : Thu Mar 25 2010 - 19:29:04 GMT