Skip to content

Commit 3043c59

Browse files
kesmit13claude
andcommitted
Add missing -MYSQL_TYPE_BLOB case in numpy sizing pass
The negated binary blob case list in load_rowdat_1_numpy's sizing pass omitted -MYSQL_TYPE_BLOB while including the other three blob types. The data output pass already handled all four. This mismatch caused columns with negated MYSQL_TYPE_BLOB to fall through the sizing switch unhandled, leading to incorrect data pointer advancement and corrupted parsing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 14d5e83 commit 3043c59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

accel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,6 +2457,7 @@ static PyObject *load_rowdat_1_numpy(PyObject *self, PyObject *args, PyObject *k
24572457
case -MYSQL_TYPE_TINY_BLOB:
24582458
case -MYSQL_TYPE_MEDIUM_BLOB:
24592459
case -MYSQL_TYPE_LONG_BLOB:
2460+
case -MYSQL_TYPE_BLOB:
24602461
CHECKSIZE(8);
24612462
item_sizes[i] = 8;
24622463
data_formats[i] = "Q";

0 commit comments

Comments
 (0)