You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Abhay (Jira)" <ji...@apache.org> on 2020/06/26 06:46:00 UTC

[jira] [Created] (IGNITE-13188) In SQLBindParameter if StrLen_or_IndPtr is NULL then default value should be SQL_NTS

Abhay created IGNITE-13188:
------------------------------

             Summary: In SQLBindParameter if StrLen_or_IndPtr is NULL then default value should be SQL_NTS
                 Key: IGNITE-13188
                 URL: https://issues.apache.org/jira/browse/IGNITE-13188
             Project: Ignite
          Issue Type: Bug
          Components: platforms
    Affects Versions: 2.8.1, 2.7.6
            Reporter: Abhay


We had a issue in integrating Asterisk VOIP server with Ignite and found that in app/application_data_buffer.cpp 

SqlLen ApplicationDataBuffer::GetInputSize() const

this line 

return len ? *len : SQL_DEFAULT_PARAM;

should be replaced with 

return len ? *len : SQL_NTS;

As per RFC 

[https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlbindparameter-function?view=sql-server-ver15]

If StrLen_or_IndPtr is NULL then it should be treated as null terminated string and so SQL_NTS should be the value .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)