Skip to content

Commit ccd0ffa

Browse files
authored
Issue 216: Pass SQLGetInfo results to ODBCStatement (#230)
Signed-off-by: Mark Irish <[email protected]>
1 parent c51ad8f commit ccd0ffa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/odbc_statement.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ ODBCStatement::ODBCStatement(const Napi::CallbackInfo& info) : Napi::ObjectWrap<
4848
this->data = new StatementData();
4949
this->odbcConnection = info[0].As<Napi::External<ODBCConnection>>().Data();
5050
this->data->hstmt = *(info[1].As<Napi::External<SQLHSTMT>>().Data());
51+
this->data->fetch_array = this->odbcConnection->connectionOptions.fetchArray;
52+
this->data->maxColumnNameLength = this->odbcConnection->getInfoResults.max_column_name_length;
53+
this->data->get_data_supports = this->odbcConnection->getInfoResults.sql_get_data_supports;
5154
}
5255

5356
ODBCStatement::~ODBCStatement() {

0 commit comments

Comments
 (0)