From: Scott Barninger Date: Sun, 6 Nov 2005 11:18:52 +0000 (+0000) Subject: Fix bug 461. X-Git-Tag: Release-1.38.1~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ad409d1053d9f66d35921c7112018c11f221eb1;p=bacula%2Fbacula Fix bug 461. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2550 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bimagemgr/bimagemgr.pl b/gui/bimagemgr/bimagemgr.pl index 1b3cea57e9..6fcef1a743 100755 --- a/gui/bimagemgr/bimagemgr.pl +++ b/gui/bimagemgr/bimagemgr.pl @@ -28,7 +28,7 @@ # MA 02111-1307, USA. ## -my $VERSION = "0.2.6"; +my $VERSION = "0.2.7"; require 5.000; use strict 'vars', 'refs', 'subs'; use DBI; @@ -379,7 +379,7 @@ sub UpdateImageTable { $sth2->execute(); $exists = $sth2->fetchrow_array; if ($exists ne $id) { - $dbh->do("INSERT into CDImages SET MediaId=$id"); + $dbh->do("INSERT into CDImages VALUES ($id,\"0000-00-00 00:00:00\")"); } $sth2->finish(); } @@ -577,3 +577,6 @@ sub HTMLdie { # add conditional in Burn() to prevent updating of CDImages # for catalog or CD/RW blanking burns # +# 0.2.7 06 Nov 2005 +# bug 461 - correct INSERT syntax in UpdateImageTable to +# work with PostgreSQL