Skip to content

Binding BLOB requires narrowing conversion #430

Open
@fzakaria

Description

@fzakaria
const int lengthInBytes =
      static_cast<int>(sizeof(uint8_t) * binary->raw().size());
insert.bind(1, binary->raw().data(), lengthInBytes);

Would be nice if the API took size_t or something so that I don't have to narrow it.
On my machine size_type (size_t) is unsigned long.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions