diff options
author | unknown <cmiller@zippy.cornsilk.net> | 2007-02-22 11:48:56 -0500 |
---|---|---|
committer | unknown <cmiller@zippy.cornsilk.net> | 2007-02-22 11:48:56 -0500 |
commit | cdacff2d95266965656a444adcbbfea241d70c60 (patch) | |
tree | eb721bff1f7ccd61eec1fde3f379a94c516b9f99 /sql | |
parent | 607c224969df2aa13f6b236440e02713a18e6c34 (diff) | |
download | mariadb-git-cdacff2d95266965656a444adcbbfea241d70c60.tar.gz |
Enclose profiling in preprocessor conditions.
include/config-win.h:
Make profiling compiled-in by default on Windows too.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_prepare.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 83ddb9c9212..de08c43658c 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -2222,7 +2222,9 @@ void mysql_stmt_execute(THD *thd, char *packet_arg, uint packet_length) if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_execute"))) DBUG_VOID_RETURN; +#ifdef ENABLED_PROFILING thd->profiling.set_query_source(stmt->query, stmt->query_length); +#endif DBUG_PRINT("exec_query", ("%s", stmt->query)); DBUG_PRINT("info",("stmt: %p", stmt)); |