Overview
SHA1 Hash: | 0921b68f669f7364768013bc182199747127fc81 |
---|---|
Date: | 2008-01-29 00:38:06 |
User: | drh |
Comment: | Fix a bug in the "user default" command. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/user.c from [dde3c3d16a] to [fb0522ab92].
@@ -206,13 +206,13 @@ }else if( n>=2 && strncmp(g.argv[2],"default",n)==0 ){ 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"); while( db_step(&q)==SQLITE_ROW ){