Skip to content

it should be possible to turn off type casting #2596

Open
@bkilinc

Description

@bkilinc

In my opinion type-casting should not be done in this level. It should be done in higher level ORM like libraries.
Type casting in here is one-way. Only for result of SELECTs. It cannot be done for in INSERTs and UPDATES or WHEREs in queries.
This may make testing tricky. You insert a date value, but it may be different when you read it according to timezone. Floats may be slightly different also, because of rounding etc.
in mysql driver it is possible to turn of type casting by typeCast: false and also dateStrings: true.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions