Open AlainSchneble opened 1 year ago
ToSql trait is implemented for time crate types, but IntoSql not:
ToSql
time
IntoSql
https://github.com/prisma/tiberius/blob/7d537fa64d6d0dc7a48740c173a898d9d6d7a820/src/tds/time/time.rs#L82
For chrono, both ToSql and IntoSql traits are implemented:
https://github.com/prisma/tiberius/blob/7d537fa64d6d0dc7a48740c173a898d9d6d7a820/src/tds/time/chrono.rs#L151
Is there any reason IntoSql trait impl is missing for time crate types?
The reason I'm asking is because I wanted to use time crate types as parameter in Query::bind method which requires IntoSql. Or am I maybe missing something?
Query::bind
Thanks for tiberius!
ToSql
trait is implemented fortime
crate types, butIntoSql
not:https://github.com/prisma/tiberius/blob/7d537fa64d6d0dc7a48740c173a898d9d6d7a820/src/tds/time/time.rs#L82
For chrono, both
ToSql
andIntoSql
traits are implemented:https://github.com/prisma/tiberius/blob/7d537fa64d6d0dc7a48740c173a898d9d6d7a820/src/tds/time/chrono.rs#L151
Is there any reason
IntoSql
trait impl is missing fortime
crate types?The reason I'm asking is because I wanted to use
time
crate types as parameter inQuery::bind
method which requiresIntoSql
. Or am I maybe missing something?Thanks for tiberius!