Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5663

ODBC: Few consecutive inserts lead to exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • odbc

    Description

      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", 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) 
      

      Also, the same behavior with executemany.

      Attachments

        Issue Links

          Activity

            People

              isapego Igor Sapego
              ezhuravl Evgenii Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: