Skip to content

Commit c9f4fbf

Browse files
authored
feat: Changes for float32 in dbapi (#1115)
1 parent 7e0b46a commit c9f4fbf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

google/cloud/spanner_dbapi/_helpers.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
param_types.BOOL.code: 1,
4141
param_types.DATE.code: 4,
4242
param_types.FLOAT64.code: 8,
43+
param_types.FLOAT32.code: 4,
4344
param_types.INT64.code: 8,
4445
param_types.TIMESTAMP.code: 12,
4546
}

google/cloud/spanner_dbapi/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __eq__(self, other):
7373

7474
STRING = "STRING"
7575
BINARY = _DBAPITypeObject("TYPE_CODE_UNSPECIFIED", "BYTES", "ARRAY", "STRUCT")
76-
NUMBER = _DBAPITypeObject("BOOL", "INT64", "FLOAT64", "NUMERIC")
76+
NUMBER = _DBAPITypeObject("BOOL", "INT64", "FLOAT64", "FLOAT32", "NUMERIC")
7777
DATETIME = _DBAPITypeObject("TIMESTAMP", "DATE")
7878
ROWID = "STRING"
7979

0 commit comments

Comments
 (0)