Skip to content

Commit

Permalink
Captured cmake result and returned in the end of the bat execution
Browse files Browse the repository at this point in the history
  • Loading branch information
affonsov committed Jan 5, 2024
1 parent 59a015f commit 927f222
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cpp/src/flightsql_odbc/flightsql-odbc/build_win32.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ cmake ..^

cmake --build . --parallel 8 --config Release

set CMAKE_RESULT=%ERRORLEVEL%

cd ..

exit /b %CMAKE_RESULT%
4 changes: 4 additions & 0 deletions cpp/src/flightsql_odbc/flightsql-odbc/build_win64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ cmake ..^

cmake --build . --parallel 8 --config Release

set CMAKE_RESULT=%ERRORLEVEL%

cd ..

exit /b %CMAKE_RESULT%
2 changes: 1 addition & 1 deletion cpp/src/flightsql_odbc/flightsql-odbc/flight_sql/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using driver::odbcabstraction::ResultSet;
using driver::odbcabstraction::ResultSetMetadata;
using driver::odbcabstraction::Statement;

void TestBindColumn(const std::shared_ptr<Connection> &connection) {
void TestBindColumn(const std::shared_ptr<Connection> &connection)
const std::shared_ptr<Statement> &statement = connection->CreateStatement();
statement->Execute(
"SELECT IncidntNum, Category FROM \"@dremio\".Test LIMIT 10");
Expand Down

0 comments on commit 927f222

Please sign in to comment.