Skip to content

Commit

Permalink
bscan: Field 'FileSetText' doesn't have a default value
Browse files Browse the repository at this point in the history
As the Field 'FileSetText' does not have a default value,
but we do not get a FileSetText during bscan, we now put the
empty string for FileSetText into the Database
  • Loading branch information
pstorz committed May 31, 2017
1 parent 345e8bb commit 1df8385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cats/sql_create.c
Expand Up @@ -778,8 +778,8 @@ bool B_DB::create_fileset_record(JCR *jcr, FILESET_DBR *fsr)
esc_fs, esc_md5, fsr->cCreateTime, esc_filesettext.c_str());
} else {
Mmsg(cmd,
"INSERT INTO FileSet (FileSet,MD5,CreateTime) "
"VALUES ('%s','%s','%s')",
"INSERT INTO FileSet (FileSet,MD5,CreateTime,FileSetText) "
"VALUES ('%s','%s','%s','')",
esc_fs, esc_md5, fsr->cCreateTime);
}

Expand Down

0 comments on commit 1df8385

Please sign in to comment.