summaryrefslogtreecommitdiff
path: root/base/mysql.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-23 15:52:28 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-23 15:52:28 -0400
commit095851dbb22a53e082c2a35c01744ffe94515ad8 (patch)
treee6669e345fcfa2998451cb264112b82d472bbdcd /base/mysql.hh
parent70eb684500254815432dae4767096fef9200920a (diff)
downloadgem5-095851dbb22a53e082c2a35c01744ffe94515ad8.tar.xz
add a trace mechanism to trace sql stuff
base/mysql.hh: Trace sql queries base/traceflags.py: Add a trace flag to trace sql queries --HG-- extra : convert_revision : dc25abb474db7334529b791a7aa90f8178ea59ea
Diffstat (limited to 'base/mysql.hh')
-rw-r--r--base/mysql.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/mysql.hh b/base/mysql.hh
index 89bec73d0..23edb878c 100644
--- a/base/mysql.hh
+++ b/base/mysql.hh
@@ -180,6 +180,7 @@ class Connection
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));