Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix and out-of-order variable definition in the "sqlite3" command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f105bc17a06cc302ba1bde6de894793c |
| User & Date: | drh 2010-11-26 18:43:22.000 |
References
|
2010-12-01
| ||
| 23:22 | • New ticket [195e50e934] out of memory error with fossil sqlite3 command. ... (artifact: 2b7a3b6afd user: anonymous) | |
|
2010-11-27
| ||
| 23:53 | • New ticket [2600e5a50d] Add a simple read-only WebDAV access. ... (artifact: 9be83013ed user: anonymous) | |
Context
|
2010-12-02
| ||
| 14:46 | Remove some instances of strcpy() and sprintf() due to warnings on OpenBSD. Update the internal SQLite to the latest 3.7.4 release candidate. ... (check-in: 3ad5891c72 user: drh tags: trunk) | |
|
2010-11-26
| ||
| 18:43 | Fix and out-of-order variable definition in the "sqlite3" command. ... (check-in: f105bc17a0 user: drh tags: trunk) | |
| 18:37 | Report an error if the repository schema version does not match what the fossil executable expects. ... (check-in: c0c3d92340 user: drh tags: trunk) | |
Changes
Changes to src/sqlcmd.c.
| ︙ | ︙ | |||
30 31 32 33 34 35 36 37 |
static void sqlcmd_content(
sqlite3_context *context,
int argc,
sqlite3_value **argv
){
int rid;
Blob cx;
assert( argc==1 );
| > | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
static void sqlcmd_content(
sqlite3_context *context,
int argc,
sqlite3_value **argv
){
int rid;
Blob cx;
const char *zName;
assert( argc==1 );
zName = (const char*)sqlite3_value_text(argv[0]);
if( zName==0 ) return;
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);
|
| ︙ | ︙ |