        if (mdb->db_name) {
           free(mdb->db_name);
        }
-@@ -538,5 +540,201 @@
+@@ -538,5 +540,202 @@
     return id;
  }
  

+   int count=30;
+   size_t len;
+   char *digest;
+
+   mdb->esc_name = check_pool_memory_size(mdb->esc_name, mdb->fnl*2+1);
+   my_postgresql_copy_escape(mdb->esc_name, mdb->fname, mdb->fnl);

  *  The filename and path records have already been created.
diff -Naur cvs/src/cats/sqlite.c my/src/cats/sqlite.c
--- cvs/src/cats/sqlite.c	2006-12-06 15:11:53.000000000 +0100
+++ my/src/cats/sqlite.c	2007-01-10 19:21:42.000000000 +0100
@@ -108,6 +108,7 @@
    mdb->fname = get_pool_memory(PM_FNAME);
    mdb->path = get_pool_memory(PM_FNAME);
