Index: sql/connection.h |
diff --git a/sql/connection.h b/sql/connection.h |
index a2e8f67f944bd8cde89a05f4345136a855d26944..8155a8fd72d1892b1fcc4cab27075ff2f6efb456 100644 |
--- a/sql/connection.h |
+++ b/sql/connection.h |
@@ -125,6 +125,9 @@ class SQL_EXPORT Connection { |
void set_error_callback(const ErrorCallback& callback) { |
error_callback_ = callback; |
} |
+ bool has_error_callback() const { |
+ return !error_callback_.is_null(); |
+ } |
void reset_error_callback() { |
error_callback_.Reset(); |
} |