Skip to content

Commit 2c6539b

Browse files
committed
[pgsql] Fix SQL for set history limit.
1 parent 72ae505 commit 2c6539b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/repo-mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ seaf_repo_manager_set_repo_history_limit (SeafRepoManager *mgr,
17471747

17481748
if (exists)
17491749
rc = seaf_db_statement_query (db,
1750-
"UPDATE RepoHistoryLimit SET days=%d "
1750+
"UPDATE RepoHistoryLimit SET days=? "
17511751
"WHERE repo_id=?",
17521752
2, "int", days, "string", repo_id);
17531753
else

0 commit comments

Comments
 (0)