Skip to content

Commit 1274e59

Browse files
committed
fix for py3x
1 parent 002c7fb commit 1274e59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymysql/cursors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def executemany(self, query, args):
147147
if m:
148148
q_prefix = m.group(1)
149149
q_values = m.group(2).rstrip()
150-
q_postfix = m.group(3) or ''
150+
q_postfix = bytearray(m.group(3) or '')
151151
assert q_values[0] == '(' and q_values[-1] == ')'
152152
return self._do_execute_many(q_prefix, q_values, q_postfix, args,
153153
self.max_stmt_length,

0 commit comments

Comments
 (0)