const char *create_temp_basefile[4] = {
/* MySQL */
"CREATE TEMPORARY TABLE basefile%lld ("
+// "CREATE TABLE basefile%lld ("
"Path BLOB NOT NULL,"
"Name BLOB NOT NULL)",
}
Mmsg(mdb->cmd, create_temp_basefile[db_type], (uint64_t) jcr->JobId);
- if (!QUERY_DB(jcr, mdb, mdb->cmd)) {
+ if (!db_sql_query(mdb, mdb->cmd, NULL, NULL)) {
goto bail_out;
}
-
- Mmsg(buf, select_recent_version[db_type], jobids);
+ Mmsg(buf, select_recent_version[db_type], jobids);
Mmsg(mdb->cmd,
"CREATE TEMPORARY TABLE new_basefile%lld AS "
//"CREATE TABLE new_basefile%lld AS "
"JOIN Path ON (Path.PathId = Temp.PathId) "
"WHERE Temp.FileIndex > 0",
(uint64_t)jcr->JobId, buf.c_str());
- ret = QUERY_DB(jcr, mdb, mdb->cmd);
+ ret = db_sql_query(mdb, mdb->cmd, NULL, NULL);
bail_out:
db_unlock(mdb);
return ret;
Mmsg(buf,
"SELECT Path.Path, Filename.Name, FileIndex, JobId, "
"LStat, MD5 "
- "FROM ( %s ) AS TEMP "
+ "FROM ( %s ) AS Temp "
"JOIN Filename ON (Filename.FilenameId = Temp.FilenameId) "
"JOIN Path ON (Path.PathId = Temp.PathId) "
"WHERE FileIndex > 0 ORDER BY JobId, FileIndex ASC",/* Return sorted by JobId, */
- /* FileIndex for restore code */
+ /* FileIndex for restore code */
buf2.c_str());
Dmsg1(0, "sql=%s\n", buf.c_str());
#else
bstat=2
fi
+ls -l ${cwd}/tmp/bacula-restores/tmp/regress/build/accurate/
+
################################################################
p Now do a backup after making few changes
################################################################
check_restore_diff
check_files_written ${cwd}/tmp/log1.out 4
+ls -l ${cwd}/tmp/bacula-restores/tmp/regress/build/accurate/
+
+exit 0
+
rm -rf ${cwd}/tmp/bacula-restores
################################################################