Skip to content

Commit f1e21ed

Browse files
author
Ilya Gurov
authored
fix(dbapi): Spanner protobuf changes causes KeyError's (#206)
* fix: use the original protobuf * use pb * use pb
1 parent 4a58bcb commit f1e21ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/spanner_dbapi/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def description(self):
9999
# Size of the SQL type of the column.
100100
display_size=code_to_display_size.get(field.type_.code),
101101
# Client perceived size of the column.
102-
internal_size=field.ByteSize(),
102+
internal_size=field._pb.ByteSize(),
103103
)
104104
columns.append(column_info)
105105

0 commit comments

Comments
 (0)