File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,16 @@ async fn it_has_chrono_fixed_offset() -> anyhow::Result<()> {
5454 use sqlx_oldapi:: types:: chrono:: { DateTime , FixedOffset } ;
5555 assert_eq ! (
5656 DateTime :: <FixedOffset >:: parse_from_rfc3339( "2020-01-02T12:00:00+02:00" ) . unwrap( ) ,
57- get_val:: <DateTime <FixedOffset >>(
58- if cfg!( feature = "sqlite" ) {
59- "'2020-01-02 12:00:00+02:00'"
60- } else if cfg!( feature = "mssql" ) {
61- "CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)"
62- } else if cfg!( feature = "postgres" ) {
63- "'2020-01-02 12:00:00+02:00'::timestamptz"
64- } else {
65- eprintln!( "DBMS not supported" ) ;
66- return Ok ( ( ) )
67- }
68- )
57+ get_val:: <DateTime <FixedOffset >>( if cfg!( feature = "sqlite" ) {
58+ "'2020-01-02 12:00:00+02:00'"
59+ } else if cfg!( feature = "mssql" ) {
60+ "CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)"
61+ } else if cfg!( feature = "postgres" ) {
62+ "'2020-01-02 12:00:00+02:00'::timestamptz"
63+ } else {
64+ eprintln!( "DBMS not supported" ) ;
65+ return Ok ( ( ) ) ;
66+ } )
6967 . await ?
7068 ) ;
7169 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments