issues
search
libgit2
/
libgit2-backends
Standalone ODB backends for the libgit2 library
191
stars
54
forks
source link
sqlite: Blob type for oid field and libgit2 allocation
#20
Open
gumenikav
opened
7 years ago
gumenikav
commented
7 years ago
Text field is not suitable for an oid data, because of an oid can contain null-symbols.
The buffer should be allocated using the function git_odb_backend_malloc to ensure that it can be safely freed later
Тhere is no need to copy data(SQLITE_TRANSIENT) since query to the database is done in the scope of the same function