Evgenii Zhuravlev created IGNITE-5663:
-----------------------------------------

             Summary: ODBC: Few consecutive inserts lead to exception
                 Key: IGNITE-5663
                 URL: https://issues.apache.org/jira/browse/IGNITE-5663
             Project: Ignite
          Issue Type: Bug
          Components: odbc
    Affects Versions: 1.8
            Reporter: Evgenii Zhuravlev
            Assignee: Igor Sapego


Exception: ('HY010', '[HY010] Query is not prepared. (0) (SQLExecDirectW)')

Reproducer in python:


{code:java}
import pyodbc
cnxn = pyodbc.connect(DRIVER='{Apache Ignite}', 
ADDRESS='localhost:10800',CACHE="Person", autocommit=True)
cursor = cnxn.cursor()
select_string= "INSERT INTO Person(_key, id, firstName, lastName, salary) 
VALUES (?, ? , 'abcd', 'dhsagd', 1000)"
id_list = (1,1)
id_list2 = (2,2)
cursor.execute(select_string, id_list) 
cursor.execute(select_string, id_list2) 
{code}

Also, the same behavior with executemany.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to