Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Attempt to set the repository application_id to 1598444364 (which is the same as '_FSL') before any changes to the repository. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
822d6f0dab1fb7ea60e0171e5de7344c |
| User & Date: | drh 2013-05-01 19:59:17.081 |
Context
|
2013-05-01
| ||
| 20:38 | Change application ID for the repository database. Add application IDs to the global configuration and check-out databases. None of this works yet because the built-in SQLite does not support the application_id pragma, but it should start working as soon as SQLite is updated. check-in: 2cd8b61f3c user: drh tags: trunk | |
| 19:59 | Attempt to set the repository application_id to 1598444364 (which is the same as '_FSL') before any changes to the repository. check-in: 822d6f0dab user: drh tags: trunk | |
| 16:02 | Fix an off-by-one error in the binary search for file suffixes when trying to guess the mimetype of a file. Ticket [da461aefee1351] check-in: 96b09d89a1 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
if( g.db==0 ) return;
if( db.nBegin<=0 ) return;
if( rollbackFlag ) db.doRollback = 1;
db.nBegin--;
if( db.nBegin==0 ){
int i;
if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
while( db.nBeforeCommit ){
db.nBeforeCommit--;
sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
}
leaf_do_pending_checks();
}
| > | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
if( g.db==0 ) return;
if( db.nBegin<=0 ) return;
if( rollbackFlag ) db.doRollback = 1;
db.nBegin--;
if( db.nBegin==0 ){
int i;
if( db.doRollback==0 && db.nPriorChanges<sqlite3_total_changes(g.db) ){
sqlite3_exec(g.db, "PRAGMA application_id=1598444364;", 0, 0, 0);
while( db.nBeforeCommit ){
db.nBeforeCommit--;
sqlite3_exec(g.db, db.azBeforeCommit[db.nBeforeCommit], 0, 0, 0);
sqlite3_free(db.azBeforeCommit[db.nBeforeCommit]);
}
leaf_do_pending_checks();
}
|
| ︙ | ︙ |
Changes to src/schema.c.
| ︙ | ︙ | |||
176 177 178 179 180 181 182 183 184 185 186 187 188 189 | @ -- with unauthorized users. @ -- @ CREATE TABLE concealed( @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content @ mtime DATE, -- Time created. Seconds since 1970 @ content TEXT -- Content intended to be concealed @ ); ; /* ** The default reportfmt entry for the schema. This is in an extra ** script so that (configure reset) can install the default report. */ const char zRepositorySchemaDefaultReports[] = | > > > > | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | @ -- with unauthorized users. @ -- @ CREATE TABLE concealed( @ hash TEXT PRIMARY KEY, -- The SHA1 hash of content @ mtime DATE, -- Time created. Seconds since 1970 @ content TEXT -- Content intended to be concealed @ ); @ @ -- The application ID helps the unix "file" command to identify the @ -- database as a fossil repository. @ PRAGMA application_id=1598444364; -- Equivalent to '_FSL' ; /* ** The default reportfmt entry for the schema. This is in an extra ** script so that (configure reset) can install the default report. */ const char zRepositorySchemaDefaultReports[] = |
| ︙ | ︙ |