<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 1:</p><p style="white-space: pre-wrap; word-wrap: break-word;">Whats version of Ignite is affected?</p><p style="white-space: pre-wrap; word-wrap: break-word;">According to ODBC specification</p><p style="white-space: pre-wrap; word-wrap: break-word;">https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlbindparameter-function?view=sql-server-ver15#strlen_or_indptr-argument<br>"If StrLen_or_IndPtr is a null pointer, the driver assumes that all input parameter values are non-NULL and that character and binary data is null-terminated."</p><p style="white-space: pre-wrap; word-wrap: break-word;">https://www.ibm.com/support/knowledgecenter/en/SSEPEK_11.0.0/odbc/src/tpc/db2z_fnbindparameter.html<br>"If the fCType argument indicates character data (explicitly, or implicitly with SQL_C_DEFAULT), and the pcbValue argument is set to NULL, it is assumed that the application always provides a nul-terminated string in the buffer to which the rgbValue argument points. This null setting also implies that the parameter marker never uses null values."</p><p style="white-space: pre-wrap; word-wrap: break-word;">I think it was fixed in Ignite v2.3<br>https://issues.apache.org/jira/browse/IGNITE-6211<br>"ODBC: SQLBindParameter should not unbind parameter if the ParameterValuePtr is NULL"</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">We are using Ignite V2.7 . In the above doc from Microsoft "SQL_NTS. The parameter value is a null-terminated string." In the patch i am passing the reference to StrLen_or_IndPtr whose value is SQL_NTS and that is as per the said document . Without which ( i.e with passing NULL ) even the query for pjsip show endpoints which fires "select * from ps_endpoints where id like ?' parameter '%' would not return any value from the table . </p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13851">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13851">change 13851</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13851"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ia8c3fda14b9008e22fb4893204911259f600b32e </div>
<div style="display:none"> Gerrit-Change-Number: 13851 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Abhay Gupta <abhay@avissol.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-CC: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 02 Mar 2020 16:44:32 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>