"LEFT JOIN Location ON (Media.LocationId=Location.LocationId) "
"WHERE Media.VolumeName='" + m_mediaName + "'";
+ if (mainWin->m_sqlDebug) {
+ Pmsg1(000, "MediaInfo query cmd : %s\n",query.toUtf8().data());
+ }
QStringList results;
if (m_console->sql_cmd(query, results)) {
QString resultline;
"FROM Job JOIN JobMedia USING (JobId) JOIN Media USING (MediaId) "
"WHERE Media.VolumeName = '" + m_mediaName + "'";
+ if (mainWin->m_sqlDebug) {
+ Pmsg1(000, "MediaInfo query cmd : %s\n",query.toUtf8().data());
+ }
results.clear();
if (m_console->sql_cmd(query, results)) {
QString resultline;
"WHERE VolStatus IN ('Full', 'Used') "
"GROUP BY MediaType";
+ if (mainWin->m_sqlDebug) {
+ Pmsg1(000, "MediaView query cmd : %s\n",query.toUtf8().data());
+ }
if (m_console->sql_cmd(query, results)) {
foreach (resultline, results) {
fieldlist = resultline.split("\t");
+ cmd +
" ORDER BY VolumeName LIMIT " + m_sbLimit->cleanText();
-// Pmsg1(000, "MediaView query cmd : %s\n",query.toUtf8().data());
m_tableMedia->setSortingEnabled(false); /* Don't sort during insert */
results.clear();
+ if (mainWin->m_sqlDebug) {
+ Pmsg1(000, "MediaView query cmd : %s\n",query.toUtf8().data());
+ }
if (m_console->sql_cmd(query, results)) {
int row=0;
filterExipired(results);