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

time: sql_type for DateTimeProxy without backend #3734

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

surban
Copy link
Contributor

@surban surban commented Aug 5, 2023

With the time feature enabled and no active database backend compilation fails because no sql_type is specified for DateTimeProxy.

This is fixed by only deriving AsExpression for DateTimeProxy when a
database backend is active.

Fixes #3733

@surban surban marked this pull request as draft August 5, 2023 12:20
@surban surban marked this pull request as ready for review August 5, 2023 12:31
With the time feature enabled and no active database backend
compilation fails because no sql_type is specified for DateTimeProxy.

This is fixed by only deriving AsExpression for DateTimeProxy when a
database backend is active.
@weiznich weiznich requested a review from a team August 6, 2023 09:31
@weiznich weiznich added this pull request to the merge queue Aug 7, 2023
@weiznich
Copy link
Member

weiznich commented Aug 7, 2023

Thanks 👍

@weiznich weiznich added the maybe backport Maybe backport this pr to the latest diesel release label Aug 7, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 7, 2023
@weiznich weiznich added this pull request to the merge queue Aug 7, 2023
Merged via the queue into diesel-rs:master with commit cceb170 Aug 7, 2023
32 checks passed
weiznich added a commit to weiznich/diesel that referenced this pull request Aug 18, 2023
time: sql_type for DateTimeProxy without backend
@weiznich weiznich mentioned this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe backport Maybe backport this pr to the latest diesel release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error in DateTimeProxy when no backend is enabled
2 participants