Fix account seed SQL placeholder count
This commit is contained in:
parent
fbec60c356
commit
9a6150c355
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ func SaveAccount(a Account) error {
|
|||
normalizeAccount(&a)
|
||||
_, err := DB.Exec(`INSERT INTO accounts(name,src_host,src_port,src_security,src_insecure,src_user,src_pass,src_proto,
|
||||
dst_host,dst_port,dst_security,dst_insecure,dst_user,dst_pass,mbox_dir,active)
|
||||
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
|
||||
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
|
||||
ON CONFLICT(name) DO UPDATE SET
|
||||
src_host=excluded.src_host, src_port=excluded.src_port, src_security=excluded.src_security,
|
||||
src_insecure=excluded.src_insecure, src_user=excluded.src_user, src_pass=excluded.src_pass,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue