You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2020/07/17 01:28:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17159589#comment-17159589 ]
Igor Sapego commented on IGNITE-13188:
--------------------------------------
I'll take a look at this one.
> 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)