Skip to content

Commit

Permalink
fix: varbinary with bytearray
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Sep 28, 2024
1 parent 304aa4e commit 0f7230a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bind2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_new_stmt2_binds():
bind.set_value(FieldType.C_BINARY, ["涛思数据", None, "a long string with 中文字符"])
bind.set_value(FieldType.C_NCHAR, ["涛思数据", None, "a long string with 中文字符"])
bind.set_value(FieldType.C_JSON, ["{'hello': 'world'}"])
bind.set_value(FieldType.C_VARBINARY, [[0x01, 0x02, 0x03, 0x04], [0x01, 0x02, 0x03, 0x04], [0x01, 0x02, 0x03, 0x04]])
bind.set_value(FieldType.C_VARBINARY, [bytearray([0x01, 0x02, 0x03, 0x04]), bytearray([0x01, 0x02, 0x03, 0x04]), bytearray([0x01, 0x02, 0x03, 0x04])])
bind.set_value(FieldType.C_GEOMETRY, [
bytearray([0x00, 0x00, 0x59, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x40]),
bytearray([0x01, 00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x40]),
Expand Down

0 comments on commit 0f7230a

Please sign in to comment.