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
commit4822696ecb7302efc543e0be109f1c2a8f1bdf4e (patch)
tree14698de1876a7bea69d52b7f7ddaedbf0877551f /sql/sql_prepare.cc
parent14f923c0286588f9f391a2fda8b9fab5a4e2953c (diff)
downloadmariadb-git-4822696ecb7302efc543e0be109f1c2a8f1bdf4e.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));