prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
582 stars 61 forks source link

MySQL - Wrong conversion when type is date convert to datetime #427

Open carlos-rian opened 1 year ago

carlos-rian commented 1 year ago

Description

Quaint returns a wrong type when the type is date in the database for MySQL, Quaint returns a datetime.

Example:

SQL

SELECT CURRENT_DATE();

SQLX result 2022-12-24

Quaint result 2022-12-24T00:00:00.000Z