You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2021/05/31 09:40: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=17354342#comment-17354342 ] 

Ignite TC Bot commented on IGNITE-13188:
----------------------------------------

{panel:title=Branch: [pull/9136/head] Base: [master] : Possible Blockers (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Platform C++ CMake (Win x64 / Debug){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6028837]]
* IgniteOdbcTest: ConnectionTestSuite: TestConnectionRestore - New test duration 83s is more that 1 minute

{panel}
{panel:title=Branch: [pull/9136/head] Base: [master] : New Tests (1996)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Platform C++ CMake (Win x64 / Debug){color} [[tests 996|https://ci.ignite.apache.org/viewLog.html?buildId=6028837]]
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectTwoValues - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlNumericFunctionTestSuite: TestNumericFunctionFloor - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectSingleValue - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlNumericFunctionTestSuite: TestNumericFunctionLog - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: CreateTableInsertSelect - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlDateTimeFunctionTestSuite: TestCurrentDate - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectTwoValuesInDifferentOrder - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForCacheNodes - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForClientNodes - PASSED{color}
* {color:#013220}IgniteCoreTest: CacheQueryTestSuite: TestFieldsQueryByteArrayInsertSelect - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForDaemons - PASSED{color}
... and 985 new tests

{color:#00008b}Platform C++ (Win x64 / Debug){color} [[tests 996|https://ci.ignite.apache.org/viewLog.html?buildId=6028830]]
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectTwoValues - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlNumericFunctionTestSuite: TestNumericFunctionFloor - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectSingleValue - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlNumericFunctionTestSuite: TestNumericFunctionLog - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: CreateTableInsertSelect - PASSED{color}
* {color:#013220}IgniteOdbcTest: SqlDateTimeFunctionTestSuite: TestCurrentDate - PASSED{color}
* {color:#013220}IgniteThinClientTest: SqlFieldsQueryTestSuite: SelectTwoValuesInDifferentOrder - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForCacheNodes - PASSED{color}
* {color:#013220}IgniteCoreTest: CacheQueryTestSuite: TestFieldsQueryByteArrayInsertSelect - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForClientNodes - PASSED{color}
* {color:#013220}IgniteCoreTest: ClusterTestSuite: IgniteForDaemons - PASSED{color}
... and 985 new tests

{color:#00008b}Platform C++ CMake (Linux Clang){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6028835]]
* {color:#013220}IgniteOdbcTest: SqlTypesTestSuite: TestStingParamNullLen - PASSED{color}

{color:#00008b}Platform C++ CMake (Linux){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6028836]]
* {color:#013220}IgniteOdbcTest: SqlTypesTestSuite: TestStingParamNullLen - PASSED{color}

{color:#00008b}Platform C++ (Win x64 / Release){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6028831]]
* {color:#013220}IgniteOdbcTest: SqlTypesTestSuite: TestStingParamNullLen - PASSED{color}

{color:#00008b}Platform C++ CMake (Win x64 / Release){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6029020]]
* {color:#013220}IgniteOdbcTest: SqlTypesTestSuite: TestStingParamNullLen - PASSED{color}

{panel}
[TeamCity *-&gt; Run :: CPP* Results|https://ci.ignite.apache.org/viewLog.html?buildId=6028839&amp;buildTypeId=IgniteTests24Java8_RunCpp]

> 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, 2.9.1
>            Reporter: Abhay
>            Assignee: Igor Sapego
>            Priority: Major
>         Attachments: patch.txt
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)