Skip to content

Add support for 64bit bind functions #544

Description

@charlesseizilles

There is currently no way to call the functions

  • sqlite3_bind_blob64 and
  • sqlite3_bind_text64

through SQLiteCpp's Statement::bindCopy and Statement::bindNoCopy API

Please consider adding methods such as

void bindNoCopy(const int aIndex, const void* apValue, const uint64_t aSize64);
// or avoiding the potential ambiguous overload
void bindNoCopy64(const int aIndex, const void* apValue, const uint64_t aSize64);

Also, please note that static_casting the size of a string that is too long results in a bug

SQLiteCpp/src/Statement.cpp

Lines 114 to 115 in 59a047b

const int ret = sqlite3_bind_text(getPreparedStatement(), aIndex, aValue.c_str(),
static_cast<int>(aValue.size()), SQLITE_TRANSIENT);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions