1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

added error message for receiving variable with wrong GLOBAL|LOCAL type

(bug #2086)
This commit is contained in:
vva@eagle.mysql.r18.ru
2003-12-17 16:37:47 -04:00
parent fddab846d4
commit d49ff0fd62
26 changed files with 35 additions and 8 deletions

View File

@ -254,4 +254,5 @@
#define ER_NOT_SUPPORTED_YET 1235
#define ER_MASTER_FATAL_ERROR_READING_BINLOG 1236
#define ER_SLAVE_IGNORED_TABLE 1237 /* only the slave SQL thread can be sent this */
#define ER_ERROR_MESSAGES 238
#define ER_INCORRECT_GLOBAL_LOCAL_VAR 1238
#define ER_ERROR_MESSAGES 239

View File

@ -231,7 +231,7 @@ Wrong argument type to variable 'convert_character_set'
set global autocommit=1;
Variable 'autocommit' is a LOCAL variable and can't be used with SET GLOBAL
select @@global.timestamp;
Variable 'timestamp' is a LOCAL variable and can't be used with SET GLOBAL
Variable 'timestamp' is a LOCAL variable
set @@version='';
Unknown system variable 'version'
set @@concurrent_insert=1;
@ -239,7 +239,7 @@ Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLO
set @@global.sql_auto_is_null=1;
Variable 'sql_auto_is_null' is a LOCAL variable and can't be used with SET GLOBAL
select @@global.sql_auto_is_null;
Variable 'sql_auto_is_null' is a LOCAL variable and can't be used with SET GLOBAL
Variable 'sql_auto_is_null' is a LOCAL variable
set myisam_max_sort_file_size=100;
Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
set myisam_max_extra_sort_file_size=100;
@ -375,3 +375,5 @@ Unknown system variable 'xxxxxxxxxx'
select 1;
1
1
select @@session.key_buffer_size;
Variable 'key_buffer_size' is a GLOBAL variable

View File

@ -139,7 +139,7 @@ set character set unknown;
set character set 0;
--error 1228
set global autocommit=1;
--error 1228
--error 1238
select @@global.timestamp;
--error 1193
set @@version='';
@ -147,7 +147,7 @@ set @@version='';
set @@concurrent_insert=1;
--error 1228
set @@global.sql_auto_is_null=1;
--error 1228
--error 1238
select @@global.sql_auto_is_null;
--error 1229
set myisam_max_sort_file_size=100;
@ -266,3 +266,6 @@ drop table t1,t2;
--error 1193
select @@xxxxxxxxxx;
select 1;
--error 1238
select @@session.key_buffer_size;

View File

@ -1032,9 +1032,8 @@ Item *sys_var::item(THD *thd, enum_var_type var_type)
{
if (var_type != OPT_DEFAULT)
{
net_printf(&thd->net,
var_type == OPT_GLOBAL ? ER_LOCAL_VARIABLE :
ER_GLOBAL_VARIABLE, name);
net_printf(&thd->net,ER_INCORRECT_GLOBAL_LOCAL_VAR,
name, var_type == OPT_GLOBAL ? "LOCAL" : "GLOBAL");
return 0;
}
/* As there was no local variable, return the global value */

View File

@ -248,3 +248,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -242,3 +242,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -250,3 +250,4 @@
"Deze versie van MySQL ondersteunt nog geen '%s'",
"Kreeg fatale fout %d: '%-.128s' van master tijdens lezen van data uit binaire log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -244,3 +244,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -242,3 +242,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -241,3 +241,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"Questa versione di MySQL non supporta ancora '%s'",
"Errore fatale %d: '%-.128s' dal master leggendo i dati dal log binario",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -241,3 +241,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -241,3 +241,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -241,3 +241,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -243,3 +243,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"Esta vers<72>o de MySQL n<>o suporta ainda '%s'",
"Obteve fatal erro %d: '%-.128s' do master quando lendo dados do binary log",
"Slave SQL thread ignorado a consulta devido <20>s normas de replica<63><61>o-*-tabela"
"Variable '%-.64s' is a %s variable"

View File

@ -243,3 +243,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -241,3 +241,4 @@
"<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MySQL <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%s'",
"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %d: '%-.128s' <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -247,3 +247,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -240,3 +240,4 @@
"Esta versi<73>n de MySQL no soporta todavia '%s'",
"Recibi<62> fatal error %d: '%-.128s' del master cuando leyendo datos del binary log",
"Slave SQL thread ignorado el query debido a las reglas de replicaci<63>n-*-tabla"
"Variable '%-.64s' is a %s variable"

View File

@ -239,3 +239,4 @@
"Denna version av MySQL kan <20>nnu inte utf<74>ra '%s'",
"Fick fatalt fel %d: '%-.128s' fr<66>n master vid l<>sning av bin<69>rloggen"
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"

View File

@ -244,3 +244,4 @@
"This version of MySQL doesn't yet support '%s'",
"Got fatal error %d: '%-.128s' from master when reading data from binary log",
"Slave SQL thread ignored the query because of replicate-*-table rules"
"Variable '%-.64s' is a %s variable"