Bug reported here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737821
Conflicts:
bacula/src/cats/bvfs.c
"AND h.PPathId NOT IN (SELECT PathId FROM PathVisibility WHERE JobId=%s)",
jobid, jobid, jobid );
- } else if (mdb->bdb_get_type_index() == SQL_TYPE_MYSQL) {
+ } else if (mdb->bdb_get_type_index() == SQL_TYPE_MYSQL) {
Mmsg(mdb->cmd,
"INSERT INTO PathVisibility (PathId, JobId) "
"SELECT a.PathId,%s "
"LEFT JOIN PathVisibility AS b ON (b.JobId=%s and a.PathId = b.PathId) "
"WHERE b.PathId IS NULL", jobid, jobid, jobid);
- } else { /* TODO: Test the MYSQL Query with PostgreSQL */
+ } else {
Mmsg(mdb->cmd,
"INSERT INTO PathVisibility (PathId, JobId) "
"SELECT a.PathId,%s "