ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wt <waynethe...@gmail.com>
Subject ODBC Specified attribute is not supported
Date Tue, 19 Mar 2019 14:20:14 GMT
Is there a reason the following error is returned by the odbc driver

OLE DB provider "MSDASQL" for linked server "IGNITE" returned message
"Specified attribute is not supported."

I am trying to query the odbc driver from SQL server with 2.7. I can see the
table, the query returns empty columns and this error. Looking at the odbc
code base this error originates from 

https://github.com/apache/ignite/blob/master/modules/platforms/cpp/odbc/src/connection.cpp

/  case SQL_ATTR_AUTOCOMMIT:
                {
                    SQLUINTEGER mode =
static_cast<SQLUINTEGER>(reinterpret_cast<ptrdiff_t>(value));

                    if (mode != SQL_AUTOCOMMIT_ON && mode !=
SQL_AUTOCOMMIT_OFF)
                    {
                       
AddStatusRecord(SqlState::SHYC00_OPTIONAL_FEATURE_NOT_IMPLEMENTED,
                            "Specified attribute is not supported.");

                        return SqlResult::AI_ERROR;
                    }

                    autoCommit = mode == SQL_AUTOCOMMIT_ON;

                    break;
                }

                default:
                {
                   
AddStatusRecord(SqlState::SHYC00_OPTIONAL_FEATURE_NOT_IMPLEMENTED,
                        "Specified attribute is not supported.");

                    return SqlResult::AI_ERROR;
                }
}/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message