11use crate :: errors:: ConnectorXPythonError ;
22use crate :: pandas:: destination:: PandasDestination ;
33use crate :: pandas:: typesystem:: PandasTypeSystem ;
4- use chrono:: { DateTime , NaiveDate , NaiveDateTime , Utc } ;
4+ use chrono:: { DateTime , NaiveDateTime , Utc } ;
55use connectorx:: {
66 impl_transport,
77 sources:: oracle:: { OracleSource , OracleTypeSystem } ,
@@ -27,18 +27,12 @@ impl_transport!(
2727 { Char [ String ] => String [ String ] | conversion none }
2828 { NVarChar [ String ] => String [ String ] | conversion none }
2929 { NChar [ String ] => String [ String ] | conversion none }
30- { Date [ NaiveDate ] => DateTime [ DateTime <Utc >] | conversion option }
31- { Timestamp [ NaiveDateTime ] => DateTime [ DateTime <Utc >] | conversion option }
30+ { Date [ NaiveDateTime ] => DateTime [ DateTime <Utc >] | conversion option }
31+ { Timestamp [ NaiveDateTime ] => DateTime [ DateTime <Utc >] | conversion none }
3232 { TimestampTz [ DateTime <Utc >] => DateTime [ DateTime <Utc >] | conversion auto }
3333 }
3434) ;
3535
36- impl < ' py > TypeConversion < NaiveDate , DateTime < Utc > > for OraclePandasTransport < ' py > {
37- fn convert ( val : NaiveDate ) -> DateTime < Utc > {
38- DateTime :: from_utc ( val. and_hms ( 0 , 0 , 0 ) , Utc )
39- }
40- }
41-
4236impl < ' py > TypeConversion < NaiveDateTime , DateTime < Utc > > for OraclePandasTransport < ' py > {
4337 fn convert ( val : NaiveDateTime ) -> DateTime < Utc > {
4438 DateTime :: from_utc ( val, Utc )
0 commit comments