mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Fix the "sqlite3" command in the TCL interface so that it correctly returns
an error if invoked with no arguments. FossilOrigin-Name: 2034fa8089676132b5e2f71bdebf1af9ca141da2e173920c6e84fb974ab0f022
This commit is contained in:
@@ -3497,6 +3497,7 @@ static int SQLITE_TCLAPI DbMain(
|
||||
flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX;
|
||||
#endif
|
||||
|
||||
if( objc==1 ) return sqliteCmdUsage(interp, objv);
|
||||
if( objc==2 ){
|
||||
zArg = Tcl_GetStringFromObj(objv[1], 0);
|
||||
if( strcmp(zArg,"-version")==0 ){
|
||||
|
Reference in New Issue
Block a user