#479 closed enhancement (fixed)
bind egg should support ___blob
Reported by: | Jim Ursetto | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.9.0 |
Component: | extensions | Version: | |
Keywords: | bind byte-vector wee green blobbie | Cc: | |
Estimated difficulty: |
Description (last modified by )
bind supports ___byte_vector
, which is deprecated. It should probably support ___blob
in addition. I currently use ___byte_vector
in sql-de-lite and would like to modernize that.
Attachments (1)
Change History (7)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|
Changed 14 years ago by
Attachment: | bind-blob.diff.txt added |
---|
comment:2 Changed 14 years ago by
Attached patch should do the trick. Though underlying byte-vector container is char*, I used void* to reflect the opacity of blobs.
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks - patch is applied and 0.94 tagged.
Note that ___blob
is not compilable in C code yet - this needs a definition (just like ___byte_vector
in chicken.h
). I have added such a definition in the "experimental" branch of the core repository.
comment:4 Changed 14 years ago by
Works fine without chicken.h patch when binding:
int sqlite3_bind_blob(sqlite3_stmt*, int, _blob b, int n, void(*)(void*));
In what case is the chicken.h patch required?
Add blob support