1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Enclose profiling in preprocessor conditions.

include/config-win.h:
  Make profiling compiled-in by default on Windows too.
This commit is contained in:
unknown
2007-02-22 11:48:56 -05:00
parent 607c224969
commit cdacff2d95
3 changed files with 7 additions and 0 deletions

View File

@@ -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));