You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Abhay (Jira)" <ji...@apache.org> on 2021/01/15 12:38:00 UTC

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

     [ https://issues.apache.org/jira/browse/IGNITE-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abhay updated IGNITE-13188:
---------------------------
    Ignite Flags: Release Notes Required  (was: Docs Required,Release Notes Required)

> 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.7.6, 2.8.1
>            Reporter: Abhay
>            Assignee: Igor Sapego
>            Priority: Major
>
> 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)