 +      digest = ar->Digest;
 +   }
 +
-+   len = Mmsg(mdb->cmd, "%u\t%u\t%s\t%s\t%s\t%s\n", 
-+	      ar->FileIndex, ar->JobId, mdb->path, 
++   len = Mmsg(mdb->cmd, "%u\t%s\t%s\t%s\t%s\t%s\n", 
++	      ar->FileIndex, edit_int64(ar->JobId, ed1), mdb->path, 
 +	      mdb->fname, ar->attr, digest);
 +
 +   do { 

 int db_delete_pool_record(JCR *jcr, B_DB *db, POOL_DBR *pool_dbr);
diff -Naur cvs/src/cats/sql_create.c my/src/cats/sql_create.c
--- cvs/src/cats/sql_create.c	2006-12-06 15:11:53.000000000 +0100
+++ my/src/cats/sql_create.c	2006-12-14 22:06:41.000000000 +0100
@@ -664,9 +664,207 @@
  *  };
  */
 

 
diff -Naur cvs/src/cats/mysql.c my/src/cats/mysql.c
--- cvs/src/cats/mysql.c	2006-12-09 14:41:50.000000000 +0100
+++ my/src/cats/mysql.c	2007-01-10 19:21:42.000000000 +0100
@@ -121,6 +121,7 @@
    mdb->fname = get_pool_memory(PM_FNAME);
    mdb->path = get_pool_memory(PM_FNAME);
