* Stupid MySQL is NON-STANDARD !
*/
if (bdb_get_type_index() == SQL_TYPE_MYSQL) {
- Mmsg(cmd, "SELECT CONCAT(Path.Path,File.Filename) AS Filename "
- "FROM BaseFiles, File, Path "
+ Mmsg(cmd, "SELECT CONCAT(Path.Path,Filename.Name) AS Filename "
+ "FROM BaseFiles, File, Filename, Path "
"WHERE BaseFiles.JobId=%s AND BaseFiles.BaseJobId = File.JobId "
"AND BaseFiles.FileId = File.FileId "
+ "AND Filename.FilenameId=File.FilenameId "
"AND Path.PathId=File.PathId",
edit_int64(jobid, ed1));
} else {
- Mmsg(cmd, "SELECT Path.Path||File.Filename AS Filename "
- "FROM BaseFiles, File, Path "
+ Mmsg(cmd, "SELECT Path.Path||Filename.Name AS Filename "
+ "FROM BaseFiles, File, Filename, Path "
"WHERE BaseFiles.JobId=%s AND BaseFiles.BaseJobId = File.JobId "
"AND BaseFiles.FileId = File.FileId "
+ "AND Filename.FilenameId=File.FilenameId "
"AND Path.PathId=File.PathId",
edit_int64(jobid, ed1));
}
/* Note: there can be only *one* VERSION in this file */
#define VERSION "7.4.0"
-#define BDATE "14 January 2016"
-#define LSMDATE "14Jan16"
+#define BDATE "15 January 2016"
+#define LSMDATE "15Jan16"
#define RELEASE 1 /* Use ONLY in rpms */