aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeblob.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-05-05 18:39:25 +0000
committerdrh <drh@noemail.net>2007-05-05 18:39:25 +0000
commit16a9b8363d124e8761f1c8aa330644bc1d4f17bb (patch)
treef716e35ffb62e86513c1e037810c980f60cd6c68 /src/vdbeblob.c
parent59df4cda007b7666962ceb68dcf3ea22bec5c1ca (diff)
downloadsqlite-16a9b8363d124e8761f1c8aa330644bc1d4f17bb.tar.gz
sqlite-16a9b8363d124e8761f1c8aa330644bc1d4f17bb.zip
Factor out btree test logic into a separate test_btree.c file. (CVS 3928)
FossilOrigin-Name: d51274f1cc3a75f6a03e90259ce829ac1dacf78f
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r--src/vdbeblob.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c
index 862418060..8f52ca08d 100644
--- a/src/vdbeblob.c
+++ b/src/vdbeblob.c
@@ -10,7 +10,9 @@
**
*************************************************************************
**
-** $Id: vdbeblob.c,v 1.8 2007/05/04 18:36:45 danielk1977 Exp $
+** This file contains code used to implement incremental BLOB I/O.
+**
+** $Id: vdbeblob.c,v 1.9 2007/05/05 18:39:25 drh Exp $
*/
#include "sqliteInt.h"
@@ -22,7 +24,6 @@
** Valid sqlite3_blob* handles point to Incrblob structures.
*/
typedef struct Incrblob Incrblob;
-
struct Incrblob {
int flags; /* Copy of "flags" passed to sqlite3_blob_open() */
int nByte; /* Size of open blob, in bytes */
@@ -35,13 +36,13 @@ struct Incrblob {
** Open a blob handle.
*/
int sqlite3_blob_open(
- sqlite3* db,
- const char *zDb,
- const char *zTable,
- const char *zColumn,
- sqlite_int64 iRow,
+ sqlite3* db, /* The database connection */
+ const char *zDb, /* The attached database containing the blob */
+ const char *zTable, /* The table containing the blob */
+ const char *zColumn, /* The column containing the blob */
+ sqlite_int64 iRow, /* The row containing the glob */
int flags, /* True -> read/write access, false -> read-only */
- sqlite3_blob **ppBlob
+ sqlite3_blob **ppBlob /* Handle for accessing the blob returned here */
){
int nAttempt = 0;
int iCol; /* Index of zColumn in row-record */
@@ -235,7 +236,8 @@ blob_open_out:
}
/*
-** Close a blob handle.
+** Close a blob handle that was previously created using
+** sqlite3_blob_open().
*/
int sqlite3_blob_close(sqlite3_blob *pBlob){
Incrblob *p = (Incrblob *)pBlob;