Skip to content

Treating bytes as string and gives unicode decode error on this #25

@swi2012

Description

@swi2012

When i try to insert blob sqlanydb treat bytes as A_STRING and try to decode bynary data.
In fact in
mk_assign() string elif isinstance(value, Binary) on type bytes never give True so it's fallback to A_STRING.
I've changes it to elif isinstance(value, bytes) and al works perfect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions