File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4343}
4444
4545bypass_serialization = False # runtime setting to bypass blob (en|de)code
46- use_32bit_dims = False # runtime setting to read data as 32-bit
46+
47+ # runtime setting to read integers as 32-bit to read blobs created by the 32-bit
48+ # version of the mYm library for MATLAB
49+ use_32bit_dims = False
4750
4851
4952def len_u64 (obj ):
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ def test_insert_longblob():
152152 "0023000000410200000001000000070000000400000000000000640064006400640064006400640025"
153153 "00000041020000000100000008000000040000000000000053007400610067006500200031003000')" )
154154 dj .conn ().query (query_32_blob ).fetchall ()
155+ dj .blob .use_32bit_dims = True
155156 assert (schema .Longblob & 'id=1' ).fetch1 () == {
156157 'id' : 1 , 'data' :
157158 np .rec .array (
@@ -167,4 +168,4 @@ def test_insert_longblob():
167168 )
168169 }
169170 (schema .Longblob & 'id=1' ).delete ()
170-
171+ dj . blob . use_32bit_dims = False
You can’t perform that action at this time.
0 commit comments