};
static const char *sql_bvfs_list_files_default =
-"SELECT 'F', T1.PathId, File.FilenameId, "
+"SELECT 'F', T1.PathId, Filename.Name, "
"File.JobId, File.LStat, File.FileId "
"FROM Job, File, ( "
"SELECT MAX(JobTDate) AS JobTDate, PathId, FilenameId "
/* JobId PathId JobId PathId WHERE? Filename? Limit Offset*/
/* Postgresql */
- "SELECT Type, PathId, FilenameId, JobId, LStat, FileId "
+ "SELECT Type, PathId, Name, JobId, LStat, FileId "
"FROM ("
"SELECT DISTINCT ON (FilenameId) 'F' as Type, PathId, T.FilenameId, "
"Filename.Name, JobId, LStat, FileId, FileIndex "