Move the query function to the cc file and make trace stuff work
[gem5.git] / base / mysql.hh
index 89bec73d08ae24ef14576babb4640149d2820d19..58a1bf7c28708e8903eb49b1a070c4e147864682 100644 (file)
@@ -177,15 +177,7 @@ class Connection
     operator MYSQL *() { return &mysql; }
 
   public:
-    bool
-    query(const std::string &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)