"LastWritten, VolMounts, VolBytes, Media.Enabled,"
"Location.Location, VolStatus, RecyclePool.Name, Media.Recycle, "
"VolReadTime/1000000, VolWriteTime/1000000, Media.VolUseDuration, "
- "Media.MaxVolJobs, "
- "Media.MaxVolFiles, Media.MaxVolBytes, Media.VolRetention,InChanger,Slot "
+ "Media.MaxVolJobs, Media.MaxVolFiles, Media.MaxVolBytes, "
+ "Media.VolRetention,InChanger,Slot "
"FROM Media JOIN Pool USING (PoolId) LEFT JOIN Pool AS RecyclePool "
- "ON (Media.RecyclePoolId = RecyclePool.PoolId) "
- "LEFT JOIN Location USING (LocationId) "
- "WHERE Media.VolumeName = '" + m_mediaName + "'";
+ "ON (Media.RecyclePoolId=RecyclePool.PoolId) "
+ "LEFT JOIN Location ON (Media.LocationId=Location.LocationId) "
+ "WHERE Media.VolumeName='" + m_mediaName + "'";
QStringList results;
if (m_console->sql_cmd(query, results)) {