mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Fix statedb test: Added new columns.
This commit is contained in:
parent
34249e9f64
commit
407b87c17b
1 changed files with 5 additions and 3 deletions
|
@ -36,8 +36,8 @@ static void setup_db(void) {
|
|||
fail_unless(csync_statedb_create_tables(csync) == 0, "Setup failed");
|
||||
|
||||
stmt = sqlite3_mprintf("INSERT INTO metadata"
|
||||
"(phash, pathlen, path, inode, uid, gid, mode, modtime) VALUES"
|
||||
"(%lu, %d, '%q', %d, %d, %d, %d, %lu);",
|
||||
"(phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5) VALUES"
|
||||
"(%lu, %d, '%q', %d, %d, %d, %d, %lu, %d, %lu);",
|
||||
42,
|
||||
42,
|
||||
"It's a rainy day",
|
||||
|
@ -45,7 +45,9 @@ static void setup_db(void) {
|
|||
42,
|
||||
42,
|
||||
42,
|
||||
42);
|
||||
42,
|
||||
2,
|
||||
43);
|
||||
|
||||
fail_if(csync_statedb_insert(csync, stmt) < 0, NULL);
|
||||
sqlite3_free(stmt);
|
||||
|
|
Loading…
Reference in a new issue