Commit ab60ef6d authored by jcole@tetra.spaceapes.com's avatar jcole@tetra.spaceapes.com
Browse files

Fixed a bug that allowed:

SET @foo=bar;

This would cause a deadlock in mysqld, it now generates the error:
ER_SET_CONSTANTS_ONLY as follows:

mysql> set @foo=bar;
ERROR 1204: You may only use constant expressions with SET
parent f78adcc2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
mwagner@evoq.mwagner.org
heikki@donna.mysql.fi
jcole@tetra.spaceapes.com
+2 −1
Original line number Diff line number Diff line
@@ -204,4 +204,5 @@
#define ER_MASTER_INFO 1201
#define ER_SLAVE_THREAD 1202
#define ER_TOO_MANY_USER_CONNECTIONS 1203
#define ER_ERROR_MESSAGES 204
#define ER_SET_CONSTANTS_ONLY 1204
#define ER_ERROR_MESSAGES 205
+1 −0
Original line number Diff line number Diff line
@@ -214,3 +214,4 @@
"Could not initialize master info structure, check permisions on master.info",
"Could not create slave thread, check system resources",
"User %-.64s has already more than 'max_user_connections' active connections",
"You may only use constant expressions with SET",
+1 −0
Original line number Diff line number Diff line
@@ -208,3 +208,4 @@
"Could not initialize master info structure, check permisions on master.info",
"Could not create slave thread, check system resources",
"User %-.64s has already more than 'max_user_connections' active connections",
"You may only use constant expressions with SET",
+1 −0
Original line number Diff line number Diff line
@@ -205,3 +205,4 @@
"Could not initialize master info structure, check permisions on master.info",
"Could not create slave thread, check system resources",
"User %-.64s has already more than 'max_user_connections' active connections",
"You may only use constant expressions with SET",
Loading