File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rust/cubesql/pg-srv/src/values Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,10 @@ impl FromProtocolValue for TimestampValue {
154154 } ) ?;
155155
156156 // Parse timestamp string in format "YYYY-MM-DD HH:MM:SS[.fff]"
157- let parsed_datetime = chrono :: NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%d %H:%M:%S" )
158- . or_else ( |_| chrono :: NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%d %H:%M:%S%.f" ) )
159- . or_else ( |_| chrono :: NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%dT%H:%M:%S" ) )
160- . or_else ( |_| chrono :: NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%dT%H:%M:%S%.f" ) )
157+ let parsed_datetime = NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%d %H:%M:%S" )
158+ . or_else ( |_| NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%d %H:%M:%S%.f" ) )
159+ . or_else ( |_| NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%dT%H:%M:%S" ) )
160+ . or_else ( |_| NaiveDateTime :: parse_from_str ( as_str, "%Y-%m-%dT%H:%M:%S%.f" ) )
161161 . map_err ( |err| ProtocolError :: ErrorResponse {
162162 source : ErrorResponse :: error (
163163 ErrorCode :: ProtocolViolation ,
You can’t perform that action at this time.
0 commit comments