[MDEV-26673] COM_STMT_EXECUTE (bulk) returns error on INSERT .. SELECT .... Created: 2021-09-24  Updated: 2023-03-31

Status: Open
Project: MariaDB Server
Component/s: Prepared Statements
Affects Version/s: 10.6.4
Fix Version/s: 10.6

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: CONNECTOR_RELATED

Attachments: File test-maria-db-client-insert-select-prepared-statement-with-bulk-insert.tgz    
Issue Links:
Blocks
blocks CONPY-165 Optimize executemany() for non MariaD... Open

 Description   

While a normal COM_STMT_EXECUTE with Insert and Select works fine, bulk insert fails:

>>> cursor.execute("insert into t1 select NULL, ?", (54,))
>>> cursor.rowcount
1
>>> cursor.executemany("insert into t1 select NULL, ?", [(55,),(56,)])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/mariadb-1.1.0b1-py3.9-linux-x86_64.egg/mariadb/cursors.py", line 322, in executemany
    self._execute_bulk()
mariadb.OperationalError: This command is not supported in the prepared statement protocol yet



 Comments   
Comment by Thierry Giguere [ 2023-03-31 ]

Any update on this issue this is blocking issue in the phase out of JDBC Driver 2.7.x in our Java project ?

Tested with the latest MariaDb 10.6.12 combined with JDBC Driver 3.1.3. Still does not works

Generated at Thu Feb 08 09:47:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.