]> git.sur5r.net Git - bacula/bacula/commitdiff
bvfs: fix mysql query, restore seems to be ok
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 7 Oct 2010 18:28:54 +0000 (20:28 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 7 Oct 2010 18:30:20 +0000 (20:30 +0200)
bacula/src/cats/sql_cmds.c

index a1bbd698c979d4c7cc4361b760e1fbe5f5450496..48c27152bb48ecc6cf0aed02e27161d9b18c6910 100644 (file)
@@ -922,7 +922,7 @@ const char *sql_bvfs_select[5] = {
       "SELECT max(JobId) as JobId, FileIndex, FileId "
         "FROM btemp%s "
       "GROUP BY PathId, FilenameId "
-   "HAVING FileIndex > 0 ",
+   "HAVING FileIndex > 0)",
    /* Postgresql */
    "CREATE TABLE %s AS ( "
         "SELECT JobId, FileIndex, FileId "