[
https://issues.apache.org/jira/browse/IGNITE-13188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Sapego reassigned IGNITE-13188:
------------------------------------
Assignee: Igor Sapego
> 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)