summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-25 10:36:48 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-25 10:36:48 -0300
commit342819f1680c6821a2b495e2fa888e5291767bb7 (patch)
tree5fee945c9578d741fba46f97de5503099d58edd8 /sql/sql_parse.cc
parent79e60f0a40d525fd1bdf924b4fef830e2aacb858 (diff)
downloadmariadb-git-342819f1680c6821a2b495e2fa888e5291767bb7.tar.gz
Bug#53908: compile failure with embedded enabled
This fixes a recently introduced regression, where a variable is not defined for the embedded server. Although the embedded server is not supported in 5.0, make it at least compile.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index d0a4fff442f..b9a8537b61a 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -493,6 +493,7 @@ int check_user(THD *thd, enum enum_server_command command,
}
send_ok(thd);
thd->password= test(passwd_len); // remember for error messages
+#ifndef EMBEDDED_LIBRARY
/*
Allow the network layer to skip big packets. Although a malicious
authenticated session might use this to trick the server to read
@@ -500,6 +501,7 @@ int check_user(THD *thd, enum enum_server_command command,
that needs to be preserved as to not break backwards compatibility.
*/
thd->net.skip_big_packet= TRUE;
+#endif
/* Ready to handle queries */
DBUG_RETURN(0);
}