Fossil SCM

Minor correction to the previous check-in, use db_optional_sql() where appropriate.

mistachkin 2014-09-12 21:15 UTC caseInsensitiveAllLists
Commit e2ff0cc2482243dc924a7685e91227b06864dd6f
1 file changed +3 -3
+3 -3
--- src/db.c
+++ src/db.c
@@ -2008,13 +2008,13 @@
20082008
"REPLACE INTO global_config(name, value)"
20092009
"VALUES('%s','%q');",
20102010
zCkoutSetting, blob_str(&full)
20112011
);
20122012
db_swap_connections();
2013
- db_multi_exec(
2014
- "DELETE FROM config WHERE name %s = '%s';",
2015
- zCollation, zCkoutSetting
2013
+ db_optional_sql("repository",
2014
+ "DELETE FROM config WHERE name %s = '%s';",
2015
+ zCollation, zCkoutSetting
20162016
);
20172017
db_optional_sql("repository",
20182018
"REPLACE INTO config(name,value,mtime)"
20192019
"VALUES('%s',1,now());",
20202020
zCkoutSetting
20212021
--- src/db.c
+++ src/db.c
@@ -2008,13 +2008,13 @@
2008 "REPLACE INTO global_config(name, value)"
2009 "VALUES('%s','%q');",
2010 zCkoutSetting, blob_str(&full)
2011 );
2012 db_swap_connections();
2013 db_multi_exec(
2014 "DELETE FROM config WHERE name %s = '%s';",
2015 zCollation, zCkoutSetting
2016 );
2017 db_optional_sql("repository",
2018 "REPLACE INTO config(name,value,mtime)"
2019 "VALUES('%s',1,now());",
2020 zCkoutSetting
2021
--- src/db.c
+++ src/db.c
@@ -2008,13 +2008,13 @@
2008 "REPLACE INTO global_config(name, value)"
2009 "VALUES('%s','%q');",
2010 zCkoutSetting, blob_str(&full)
2011 );
2012 db_swap_connections();
2013 db_optional_sql("repository",
2014 "DELETE FROM config WHERE name %s = '%s';",
2015 zCollation, zCkoutSetting
2016 );
2017 db_optional_sql("repository",
2018 "REPLACE INTO config(name,value,mtime)"
2019 "VALUES('%s',1,now());",
2020 zCkoutSetting
2021

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button