mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Enhance sqlite3_rsync so that it works even if the replica database is
initially malformed. FossilOrigin-Name: ea1754f7d8a770477a1b19b606b27724fdc0b733e51fef32c1ef834f972c3cc5
This commit is contained in:
@ -1797,6 +1797,7 @@ static void replicaSide(SQLiteRsync *p){
|
||||
closeDb(p);
|
||||
break;
|
||||
}
|
||||
sqlite3_db_config(p->db, SQLITE_DBCONFIG_WRITABLE_SCHEMA, 1, 0);
|
||||
runSql(p, "ATTACH %Q AS 'replica'", p->zReplica);
|
||||
if( p->wrongEncoding ){
|
||||
p->wrongEncoding = 0;
|
||||
|
Reference in New Issue
Block a user