Skip to content

Commit

Permalink
increase scale
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Aug 7, 2024
1 parent 66303c7 commit 33cae3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def get_column_hints(engine: Engine, schema_name: str, table_name: str) -> dict[
columns[column_name] = {
"data_type": "decimal",
"precision": numeric_precision or 76,
"scale": numeric_scale or 16,
"scale": numeric_scale or 32,
}

return columns
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_get_column_hints_numeric_with_missing_scale_and_precision():
mock_engine = _setup([("column", "numeric", None, None)])

assert get_column_hints(mock_engine, "some_schema", "some_table") == {
"column": {"data_type": "decimal", "precision": 76, "scale": 16}
"column": {"data_type": "decimal", "precision": 76, "scale": 32}
}


Expand Down

0 comments on commit 33cae3f

Please sign in to comment.