Differences From:
File
src/user.c
part of check-in
[783df88ba8]
- Prevent duplicate logins on the "user add" command. Also, allow the
login to be specified on the command line.
by
drh on
2007-10-26 18:18:59.
Also file
src/user.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
To:
File
src/user.c
part of check-in
[0921b68f66]
- Fix a bug in the "user default" command.
by
drh on
2008-01-29 00:38:06.
[view]
@@ -207,11 +207,11 @@
user_select();
if( g.argc==3 ){
printf("%s\n", g.zLogin);
}else if( g.localOpen ){
- db_lset("default-user", g.zLogin);
+ db_lset("default-user", g.argv[3]);
}else{
- db_set("default-user", g.zLogin, 0);
+ db_set("default-user", g.argv[3], 0);
}
}else if( n>=2 && strncmp(g.argv[2],"list",n)==0 ){
Stmt q;
db_prepare(&q, "SELECT login, info FROM user ORDER BY login");