[ 
https://issues.apache.org/jira/browse/IGNITE-5663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074836#comment-16074836
 ] 

ASF GitHub Bot commented on IGNITE-5663:
----------------------------------------

Github user isapego closed the pull request at:

    https://github.com/apache/ignite/pull/2237


> 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: 2.0
>            Reporter: Evgenii Zhuravlev
>            Assignee: Igor Sapego
>              Labels: important, odbc
>             Fix For: 2.1
>
>
> 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