Skip to content

Commit

Permalink
feat: Changes for float32 in dbapi (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankiaga committed Mar 13, 2024
1 parent 7e0b46a commit c9f4fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions google/cloud/spanner_dbapi/_helpers.py
Expand Up @@ -40,6 +40,7 @@
param_types.BOOL.code: 1,
param_types.DATE.code: 4,
param_types.FLOAT64.code: 8,
param_types.FLOAT32.code: 4,
param_types.INT64.code: 8,
param_types.TIMESTAMP.code: 12,
}
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/spanner_dbapi/types.py
Expand Up @@ -73,7 +73,7 @@ def __eq__(self, other):

STRING = "STRING"
BINARY = _DBAPITypeObject("TYPE_CODE_UNSPECIFIED", "BYTES", "ARRAY", "STRUCT")
NUMBER = _DBAPITypeObject("BOOL", "INT64", "FLOAT64", "NUMERIC")
NUMBER = _DBAPITypeObject("BOOL", "INT64", "FLOAT64", "FLOAT32", "NUMERIC")
DATETIME = _DBAPITypeObject("TIMESTAMP", "DATE")
ROWID = "STRING"

Expand Down

0 comments on commit c9f4fbf

Please sign in to comment.