Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When updating a schema from 1.x to 2.x, temporarily disable defensive mode so that we can remove the length constraint on the BLOB.UUID column. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d4041437b6f40d0cc62f22d2973498d5 |
User & Date: | drh 2021-01-28 20:42:53.159 |
Context
2021-01-30
| ||
01:39 | Typo fix reported in the forum. ... (check-in: f8c42aba user: stephan tags: trunk) | |
2021-01-29
| ||
16:10 | Add new --verbose option to 'fossil commit' to display a unified diff of all changes to be committed in the editor. Only tested on OpenBSD 6.8 and preliminary testing on macOS 10.15.7 (Catalina); needs to be tested on Linux and Windows. ... (check-in: a713e1e6 user: jamsek tags: dev-ci-verbose) | |
2021-01-28
| ||
20:42 | When updating a schema from 1.x to 2.x, temporarily disable defensive mode so that we can remove the length constraint on the BLOB.UUID column. ... (check-in: d4041437 user: drh tags: trunk) | |
20:22 | Add the "color-hash-seed" setting to the skin configuration. ... (check-in: 198af537 user: drh tags: trunk) | |
Changes
Changes to src/rebuild.c.
︙ | ︙ | |||
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | " WHERE name='blob'"); if( z ){ /* Search for: length(uuid)==40 ** 0123456789 12345 */ int i; for(i=10; z[i]; i++){ if( z[i]=='=' && strncmp(&z[i-6],"(uuid)==40",10)==0 ){ z[i] = '>'; db_multi_exec( "PRAGMA writable_schema=ON;" "UPDATE repository.sqlite_schema SET sql=%Q WHERE name LIKE 'blob';" "PRAGMA writable_schema=OFF;", z ); break; } } fossil_free(z); } db_multi_exec( "CREATE VIEW IF NOT EXISTS " | > > > | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | " WHERE name='blob'"); if( z ){ /* Search for: length(uuid)==40 ** 0123456789 12345 */ int i; for(i=10; z[i]; i++){ if( z[i]=='=' && strncmp(&z[i-6],"(uuid)==40",10)==0 ){ int rc = 0; z[i] = '>'; sqlite3_db_config(g.db, SQLITE_DBCONFIG_DEFENSIVE, 0, &rc); db_multi_exec( "PRAGMA writable_schema=ON;" "UPDATE repository.sqlite_schema SET sql=%Q WHERE name LIKE 'blob';" "PRAGMA writable_schema=OFF;", z ); sqlite3_db_config(g.db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc); break; } } fossil_free(z); } db_multi_exec( "CREATE VIEW IF NOT EXISTS " |
︙ | ︙ |