From 867ad3783ac49e8bb476201cdc0a88d7ca547343 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Wed, 9 May 2007 00:49:34 +0000 Subject: [PATCH] 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 --- bacula/src/qt-console/restore/prerestore.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5