Skip to content

Commit 88f1767

Browse files
committed
macos buld problems
1 parent f936216 commit 88f1767

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cpp/include/js/workers/odbc_async_worker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class OdbcAsyncWorker : public Napi::AsyncWorker {
2626
Napi::Object GetMetadata();
2727

2828
// Pure virtual method that derived classes must implement
29-
virtual void Execute() = 0;
29+
void Execute() override = 0;
3030

3131
// Common implementation of OnOK that can be overridden if needed
32-
virtual void OnOK() = 0;
32+
void OnOK() override = 0;
3333

3434
// Common implementation of OnError that can be overridden if needed
3535
};

cpp/include/odbc/odbc_driver_types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ class StatementStateChange {
170170
std::string oldState;
171171
std::string newState;
172172

173+
// Default constructor
174+
StatementStateChange() = default;
175+
176+
// Constructor with parameters
177+
StatementStateChange(const StatementHandle& handle, const std::string& old_state, const std::string& new_state)
178+
: statementHandle(handle), oldState(old_state), newState(new_state) {}
179+
173180
std::string toString() const {
174181
return "StatementStateChange: " + statementHandle.toString() + " " + oldState + " -> " +
175182
newState;

0 commit comments

Comments
 (0)