X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=base%2Fmysql.hh;h=58a1bf7c28708e8903eb49b1a070c4e147864682;hb=ac61adef918cd80077e1f886bf73de9f2b301c0d;hp=89bec73d08ae24ef14576babb4640149d2820d19;hpb=aa14ee48649e4c885e4be9b2e6e40911d1ec3d17;p=gem5.git diff --git a/base/mysql.hh b/base/mysql.hh index 89bec73d0..58a1bf7c2 100644 --- a/base/mysql.hh +++ b/base/mysql.hh @@ -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)