Fossil SCM

Fix some compilation issues, related to merging.

mistachkin 2016-09-26 21:16 stash-fixes
Commit 2f07c443fbf8a94c55034ae3dc04d25e8786bde4
1 file changed +3 -3
+3 -3
--- src/stash.c
+++ src/stash.c
@@ -491,14 +491,14 @@
491491
rc = db_exists("SELECT 1 FROM sqlite_master"
492492
" WHERE name='stashfile'"
493493
" AND sql GLOB '* PRIMARY KEY(origname, stashid)*'");
494494
if( rc!=0 ){
495495
db_multi_exec(
496
- "CREATE TABLE \"%w\".stashfile_tmp AS SELECT * FROM stashfile;"
497
- "DROP TABLE stashfile;", zDb
496
+ "CREATE TABLE localdb.stashfile_tmp AS SELECT * FROM stashfile;"
497
+ "DROP TABLE stashfile;"
498498
);
499
- db_multi_exec(zStashInit /*works-like:"%w,%w"*/, zDb, zDb);
499
+ db_multi_exec(zStashInit /*works-like:""*/);
500500
db_multi_exec(
501501
"INSERT INTO stashfile SELECT * FROM stashfile_tmp;"
502502
"DROP TABLE stashfile_tmp;"
503503
);
504504
}
505505
--- src/stash.c
+++ src/stash.c
@@ -491,14 +491,14 @@
491 rc = db_exists("SELECT 1 FROM sqlite_master"
492 " WHERE name='stashfile'"
493 " AND sql GLOB '* PRIMARY KEY(origname, stashid)*'");
494 if( rc!=0 ){
495 db_multi_exec(
496 "CREATE TABLE \"%w\".stashfile_tmp AS SELECT * FROM stashfile;"
497 "DROP TABLE stashfile;", zDb
498 );
499 db_multi_exec(zStashInit /*works-like:"%w,%w"*/, zDb, zDb);
500 db_multi_exec(
501 "INSERT INTO stashfile SELECT * FROM stashfile_tmp;"
502 "DROP TABLE stashfile_tmp;"
503 );
504 }
505
--- src/stash.c
+++ src/stash.c
@@ -491,14 +491,14 @@
491 rc = db_exists("SELECT 1 FROM sqlite_master"
492 " WHERE name='stashfile'"
493 " AND sql GLOB '* PRIMARY KEY(origname, stashid)*'");
494 if( rc!=0 ){
495 db_multi_exec(
496 "CREATE TABLE localdb.stashfile_tmp AS SELECT * FROM stashfile;"
497 "DROP TABLE stashfile;"
498 );
499 db_multi_exec(zStashInit /*works-like:""*/);
500 db_multi_exec(
501 "INSERT INTO stashfile SELECT * FROM stashfile_tmp;"
502 "DROP TABLE stashfile_tmp;"
503 );
504 }
505

Keyboard Shortcuts

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