Skip to content

Commit 9edd73d

Browse files
committed
feat: add test_decimal field to cars model and update related resources
1 parent b0c3c80 commit 9edd73d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

adminforth/dataConnectors/postgres.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const { Client, types } = pkg;
1212
// which treats them as LOCAL server time. Return raw strings so getFieldValue can parse as UTC.
1313
types.setTypeParser(1114, (val) => val); // TIMESTAMP WITHOUT TIME ZONE
1414
types.setTypeParser(1082, (val) => val); // DATE
15+
types.setTypeParser(1700, (val) => val === null ? null : parseFloat(val).toString()); // NUMERIC/DECIMAL
1516

1617

1718
class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDataSourceConnector {

0 commit comments

Comments
 (0)