Skip to content

Commit

Permalink
Merge pull request #4 from fluencelabs/fix_xdel
Browse files Browse the repository at this point in the history
Use hardcoded free instead of xDel
  • Loading branch information
mikevoronov authored Sep 3, 2021
2 parents b07df8a + 807d6ff commit e7c772c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/vdbeapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,13 @@ int sqlite3_bind_blob(
#ifdef SQLITE_ENABLE_API_ARMOR
if( nData<0 ) return SQLITE_MISUSE_BKPT;
#endif

#ifdef __sqlite_unmodified_upstream
return bindText(pStmt, i, zData, nData, xDel, 0);
#else
// xDel is a custom deallocator, due to our IT architecture it can't be provided from other modules.
return bindText(pStmt, i, zData, nData, free, 0);
#endif
}
int sqlite3_bind_blob64(
sqlite3_stmt *pStmt,
Expand Down Expand Up @@ -1521,7 +1527,12 @@ int sqlite3_bind_text(
int nData,
void (*xDel)(void*)
){
#ifdef __sqlite_unmodified_upstream
return bindText(pStmt, i, zData, nData, xDel, SQLITE_UTF8);
#else
// xDel is a custom deallocator, due to our IT architecture it can't be provided from other modules.
return bindText(pStmt, i, zData, nData, free, SQLITE_UTF8);
#endif
}
int sqlite3_bind_text64(
sqlite3_stmt *pStmt,
Expand Down

0 comments on commit e7c772c

Please sign in to comment.