<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: hdbcli&amp;gt;2.5 cannot bind parameters by name (Python) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaa-p/12307199#M4612499</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Where was this information posted already? (I searched a lot for this error)&lt;/P&gt;&lt;P&gt;Do i looked on the wrong place?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 15:16:17 GMT</pubDate>
    <dc:creator>michael_hadorn7</dc:creator>
    <dc:date>2021-01-18T15:16:17Z</dc:date>
    <item>
      <title>hdbcli&gt;2.5 cannot bind parameters by name (Python)</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaq-p/12307197</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;
  &lt;P&gt;Since the hdbcli&amp;gt;=2.5 it's not possible to bind parameters by name.&lt;/P&gt;
  &lt;P&gt;In version hdbcli==2.4.202 it's still working.&lt;/P&gt;
  &lt;P&gt;With unnamed params it's working (using of ?).&lt;/P&gt;
  &lt;P&gt;I'm using conda with python 3.8 on windows.&lt;/P&gt;
  &lt;P&gt;I tested the behaviour with:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;2.5.111&lt;/LI&gt;
   &lt;LI&gt;2.6.64&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Minimal example:&lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;from hdbcli import dbapi

conn = dbapi.connect(...)
cursor = conn.cursor()

sql = 'SELECT count(*) FROM sys.tables where table_name like :xx'
params = {
    'xx': '%'
}

cursor.execute(sql, params)
for row in cursor:
    print(row)
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;Error message: &lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SystemError: d:\bld\python-split_1602094606092\work\objects\dictobject.c:2469: bad argument to internal function

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "S:/cdwh-prefect/test.py", line 12, in &amp;lt;module&amp;gt;
    cursor.execute(sql, params)
SystemError: &amp;lt;built-in method parsenamedquery of pyhdbcli.Cursor object at 0x0000026BB89892F0&amp;gt; returned a result with an error set&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaq-p/12307197</guid>
      <dc:creator>michael_hadorn7</dc:creator>
      <dc:date>2020-12-16T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: hdbcli&gt;2.5 cannot bind parameters by name (Python)</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaa-p/12307198#M4612498</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I quickly verified our issue and it's reproducible. However, colleagues already reported the issue and it's expected to be fixed in the upcoming 2.7 version of the SAP HANA clients. It's planned to be release end of January. &lt;/P&gt;&lt;P&gt;Best regards, Kai&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 09:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaa-p/12307198#M4612498</guid>
      <dc:creator>Kai_Mueller</dc:creator>
      <dc:date>2021-01-18T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: hdbcli&gt;2.5 cannot bind parameters by name (Python)</title>
      <link>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaa-p/12307199#M4612499</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Where was this information posted already? (I searched a lot for this error)&lt;/P&gt;&lt;P&gt;Do i looked on the wrong place?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hdbcli-gt-2-5-cannot-bind-parameters-by-name-python/qaa-p/12307199#M4612499</guid>
      <dc:creator>michael_hadorn7</dc:creator>
      <dc:date>2021-01-18T15:16:17Z</dc:date>
    </item>
  </channel>
</rss>

