From: Dirk H Bartley Date: Wed, 9 May 2007 00:49:34 +0000 (+0000) Subject: Fix of case from Fileset to FileSet for compatibility with mysql. X-Git-Tag: Release-7.0.0~6398 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=867ad3783ac49e8bb476201cdc0a88d7ca547343;p=bacula%2Fbacula Fix of case from Fileset to FileSet for compatibility with mysql. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4733 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/restore/prerestore.cpp b/bacula/src/qt-console/restore/prerestore.cpp index be7d85e7c1..490d81ea02 100644 --- a/bacula/src/qt-console/restore/prerestore.cpp +++ b/bacula/src/qt-console/restore/prerestore.cpp @@ -237,11 +237,11 @@ void prerestorePage::jobdefsFromJob(QStringList &fieldlist, QString jobId) { QString job, client, fileset; QString query(""); - query = "SELECT DISTINCT Job.Name AS JobName, Client.Name AS Client, Fileset.Fileset AS Fileset " - " From Job, Client, Fileset" - " WHERE Job.FilesetId=FileSet.FilesetId AND Job.ClientId=Client.ClientId" + query = "SELECT DISTINCT Job.Name AS JobName, Client.Name AS Client, FileSet.FileSet AS FileSet " + " From Job, Client, FileSet" + " WHERE Job.FileSetId=FileSet.FileSetId AND Job.ClientId=Client.ClientId" " AND JobId=\'" + jobId + "\'"; - //printf("query = %s\n", query.toUtf8().data()); + printf("query = %s\n", query.toUtf8().data()); QStringList results; if (m_console->sql_cmd(query, results)) { QString field;