Can distinguish blobs from text when retrieving data from DB

This commit is contained in:
Alexey Romanov
2010-11-22 18:20:57 +03:00
parent 6d9819c7c1
commit 7cb0ab538e
3 changed files with 48 additions and 26 deletions

View File

@@ -36,6 +36,7 @@ typedef struct sqlite3_drv_t {
struct sqlite3 *db;
long async_handle;
FILE *log;
ErlDrvTermData atom_blob;
ErlDrvTermData atom_error;
ErlDrvTermData atom_columns;
ErlDrvTermData atom_rows;
@@ -52,8 +53,7 @@ typedef struct async_sqlite3_command {
int term_count;
int row_count;
ptr_list *ptrs;
int binaries_count;
ErlDrvBinary **binaries;
ptr_list *binaries;
} async_sqlite3_command;