mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
If a NULL pointer is passed to sqlite3session_attach() in place of a table name, attach all database tables to the session object.
FossilOrigin-Name: e9037e4e4ccaa5c633759c4d041b60b631b92c6c
This commit is contained in:
@ -54,11 +54,14 @@ static int test_session_cmd(
|
||||
}
|
||||
|
||||
switch( iSub ){
|
||||
case 0: /* attach */
|
||||
rc = sqlite3session_attach(pSession, Tcl_GetString(objv[2]));
|
||||
case 0: { /* attach */
|
||||
char *zArg = Tcl_GetString(objv[2]);
|
||||
if( zArg[0]=='*' && zArg[1]=='\0' ) zArg = 0;
|
||||
rc = sqlite3session_attach(pSession, zArg);
|
||||
if( rc!=SQLITE_OK ){
|
||||
return test_session_error(interp, rc);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 1: { /* changeset */
|
||||
|
Reference in New Issue
Block a user