summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2009-05-05 17:03:23 -0400
committerChad MILLER <chad@mysql.com>2009-05-05 17:03:23 -0400
commit9d58239dea8c615a10a0939e34d052b22808e75f (patch)
tree14698de1876a7bea69d52b7f7ddaedbf0877551f /sql/sql_prepare.cc
parent978e8e06b00defd5c95c7eb88304333e7978a553 (diff)
downloadmariadb-git-9d58239dea8c615a10a0939e34d052b22808e75f.tar.gz
Pull 5.1 treatment of community features into 5.0.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index c152bde1b92..a20f61436a7 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2283,7 +2283,7 @@ 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
+#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
thd->profiling.set_query_source(stmt->query, stmt->query_length);
#endif
DBUG_PRINT("exec_query", ("%s", stmt->query));