Skip to content

Commit

Permalink
Issue 216: Pass SQLGetInfo results to ODBCStatement (#230)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Irish <[email protected]>
  • Loading branch information
markdirish authored Oct 20, 2021
1 parent c51ad8f commit ccd0ffa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/odbc_statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ ODBCStatement::ODBCStatement(const Napi::CallbackInfo& info) : Napi::ObjectWrap<
this->data = new StatementData();
this->odbcConnection = info[0].As<Napi::External<ODBCConnection>>().Data();
this->data->hstmt = *(info[1].As<Napi::External<SQLHSTMT>>().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() {
Expand Down

0 comments on commit ccd0ffa

Please sign in to comment.