Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Raw fails if a column has DateTime and null values #427

Closed
AndryHTC opened this issue Sep 17, 2024 · 2 comments
Closed

Query Raw fails if a column has DateTime and null values #427

AndryHTC opened this issue Sep 17, 2024 · 2 comments
Labels
bug Something isn't working platform:dart type:engine

Comments

@AndryHTC
Copy link

When performing a raw query using the Dart ORM, the query fails if a column contains both DateTime and null values. The following error is thrown:

FormatException: Invalid date format
null
#0      DateTime.parse (dart:core/date_time.dart:351:7)
#1      _decode (package:orm/src/runtime/raw/_deserialize_raw_results.dart:32:38)
#2      deserializeRawResult (package:orm/src/runtime/raw/_deserialize_raw_results.dart:18:42)
#3      RawClient.query (package:orm/src/runtime/raw/raw_client.dart:22:12)
<asynchronous suspension>
#4      ContrattiPrismaRepository.getContratti (package:ewocrm_server/src/features/contratti/repositories/contratti_prisma.dart:55:24)
<asynchronous suspension>
#5      ContrattiEndpoint.get (package:ewocrm_server/src/endpoints/contratti_endpoint.dart:23:12)
<asynchronous suspension>
@medz medz added bug Something isn't working type:engine platform:dart labels Sep 17, 2024
@medz
Copy link
Owner

medz commented Sep 17, 2024

Thank you for your feedback. I will fix this problem later.

@medz
Copy link
Owner

medz commented Sep 17, 2024

Fixed in v5.1.1 version, ❤️ ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:dart type:engine
Projects
None yet
Development

No branches or pull requests

2 participants