Skip to content

unnecessary calls to sqlite3_{column,value}_bytes{,16} in getting text #200

Closed
@marciso

Description

@marciso

in functions inline void get_col_from_db(database_binder& db, int inx, std::string & s), inline void get_val_from_db(sqlite3_value *value, std::string & s) and corresponding std::u16string variants, there is a call to the function to get text length, before getting the text, but the result of this call is not used.

I have commented these calls (for performance reason), the code still works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions