Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Avoid uniqueness errors when inserting default users. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
646c4a67f9a5b212f338ccc311e1ce43 |
| User & Date: | drh 2013-02-19 12:29:39.498 |
Context
|
2013-02-20
| ||
| 08:33 | Simplify/speedup starts_with_utf16_bom and enhance doc for it. check-in: 957be42625 user: jan.nijtmans tags: trunk | |
|
2013-02-19
| ||
| 12:29 | Avoid uniqueness errors when inserting default users. check-in: 646c4a67f9 user: drh tags: trunk | |
|
2013-02-18
| ||
| 22:35 | Update version of OpenSSL that is referred to in the makefiles. check-in: ab9b449190 user: mistachkin tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
1260 1261 1262 1263 1264 1265 1266 |
);
db_multi_exec(
"UPDATE user SET cap='s', pw=lower(hex(randomblob(3)))"
" WHERE login=%Q", zUser
);
if( !setupUserOnly ){
db_multi_exec(
| | | | | | 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
);
db_multi_exec(
"UPDATE user SET cap='s', pw=lower(hex(randomblob(3)))"
" WHERE login=%Q", zUser
);
if( !setupUserOnly ){
db_multi_exec(
"INSERT OR IGNORE INTO user(login,pw,cap,info)"
" VALUES('anonymous',hex(randomblob(8)),'hmncz','Anon');"
"INSERT OR IGNORE INTO user(login,pw,cap,info)"
" VALUES('nobody','','gjor','Nobody');"
"INSERT OR IGNORE INTO user(login,pw,cap,info)"
" VALUES('developer','','dei','Dev');"
"INSERT OR IGNORE INTO user(login,pw,cap,info)"
" VALUES('reader','','kptw','Reader');"
);
}
}
/*
** Return a pointer to a string that contains the RHS of an IN operator
|
| ︙ | ︙ |