ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgenii Zhuravlev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5663) ODBC: Few consecutive inserts lead to exception
Date Mon, 03 Jul 2017 14:45:00 GMT
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:

import pyodbc
cnxn = pyodbc.connect(DRIVER='{Apache Ignite}', ADDRESS='localhost:10800',CACHE="Person",
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) 

Also, the same behavior with executemany.

This message was sent by Atlassian JIRA

View raw message