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)