mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Make executemany iterate over queries that don't use multiple VALUES
This commit is contained in:
@@ -106,7 +106,11 @@ class BaseCursor:
|
||||
|
||||
from string import join
|
||||
m = insert_values.search(query)
|
||||
if not m: raise ProgrammingError, "can't find values"
|
||||
if not m:
|
||||
r = 0
|
||||
for a in args:
|
||||
r = r + self.execute(query, a)
|
||||
return r
|
||||
p = m.start(1)
|
||||
qv = query[p:]
|
||||
qargs = self.connection.literal(args)
|
||||
|
||||
Reference in New Issue
Block a user