diff --git a/src/odbc_statement.cpp b/src/odbc_statement.cpp index 646f679e..cbf651ea 100644 --- a/src/odbc_statement.cpp +++ b/src/odbc_statement.cpp @@ -48,6 +48,9 @@ ODBCStatement::ODBCStatement(const Napi::CallbackInfo& info) : Napi::ObjectWrap< this->data = new StatementData(); this->odbcConnection = info[0].As>().Data(); this->data->hstmt = *(info[1].As>().Data()); + this->data->fetch_array = this->odbcConnection->connectionOptions.fetchArray; + this->data->maxColumnNameLength = this->odbcConnection->getInfoResults.max_column_name_length; + this->data->get_data_supports = this->odbcConnection->getInfoResults.sql_get_data_supports; } ODBCStatement::~ODBCStatement() {