diff options
Diffstat (limited to 'base/mysql.hh')
-rw-r--r-- | base/mysql.hh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/base/mysql.hh b/base/mysql.hh index 23edb878c..58a1bf7c2 100644 --- a/base/mysql.hh +++ b/base/mysql.hh @@ -177,16 +177,7 @@ class Connection operator MYSQL *() { return &mysql; } public: - bool - query(const std::string &sql) - { - DPRINTF(SQL, "Sending SQL query to server:\n%s", sql); - error.clear(); - if (mysql_real_query(&mysql, sql.c_str(), sql.size())) - error.set(mysql_error(&mysql)); - - return error; - } + bool query(const std::string &sql); bool query(const std::stringstream &sql) |