Skip to content

Commit 1fe10f2

Browse files
billy1624tyt2y3
authored andcommitted
#71 Hotfix Postgres datetime column type mapping
1 parent 744a8a8 commit 1fe10f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postgres/table.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ impl TableBuilder for PostgresQueryBuilder {
5858
None => "decimal".into(),
5959
},
6060
ColumnType::DateTime(precision) => match precision {
61-
Some(precision) => format!("datetime({})", precision),
62-
None => "datetime".into(),
61+
Some(precision) => format!("timestamp({}) without time zone", precision),
62+
None => "timestamp without time zone".into(),
6363
},
6464
ColumnType::Timestamp(precision) => match precision {
6565
Some(precision) => format!("timestamp({})", precision),

0 commit comments

Comments
 (0)