Differences From Artifact [2e68abae2f]:
- File src/sqlcmd.c — part of check-in [f105bc17a0] at 2010-11-26 18:43:22 on branch trunk — Fix and out-of-order variable definition in the "sqlite3" command. (user: drh size: 2886)
To Artifact [f5e8a3673f]:
- File src/sqlcmd.c — part of check-in [63e6cb4e58] at 2010-12-03 23:49:13 on branch trunk — Fix a bug in the new content() function added to the "sql" command. Ticket [195e50e93489c4997d]. (user: drh size: 2955)
| ︙ | |||
34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | + + |
){
int rid;
Blob cx;
const char *zName;
assert( argc==1 );
zName = (const char*)sqlite3_value_text(argv[0]);
if( zName==0 ) return;
g.db = sqlite3_context_db_handle(context);
g.repositoryOpen = 1;
rid = name_to_rid(zName);
if( rid==0 ) return;
if( content_get(rid, &cx) ){
sqlite3_result_blob(context, blob_buffer(&cx), blob_size(&cx),
SQLITE_TRANSIENT);
blob_reset(&cx);
}
|
| ︙ |