mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into janus.mylan:/usr/home/serg/Abk/mysql-5.1
This commit is contained in:
168
client/mysql.cc
168
client/mysql.cc
@ -144,6 +144,7 @@ static my_bool ignore_errors=0,wait_flag=0,quick=0,
|
|||||||
show_warnings= 0, executing_query= 0, interrupted_query= 0;
|
show_warnings= 0, executing_query= 0, interrupted_query= 0;
|
||||||
static my_bool debug_info_flag, debug_check_flag;
|
static my_bool debug_info_flag, debug_check_flag;
|
||||||
static my_bool column_types_flag;
|
static my_bool column_types_flag;
|
||||||
|
static my_bool preserve_comments= 0;
|
||||||
static ulong opt_max_allowed_packet, opt_net_buffer_length;
|
static ulong opt_max_allowed_packet, opt_net_buffer_length;
|
||||||
static uint verbose=0,opt_silent=0,opt_mysql_port=0, opt_local_infile=0;
|
static uint verbose=0,opt_silent=0,opt_mysql_port=0, opt_local_infile=0;
|
||||||
static uint my_end_arg;
|
static uint my_end_arg;
|
||||||
@ -778,6 +779,10 @@ static struct my_option my_long_options[] =
|
|||||||
{"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.",
|
{"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.",
|
||||||
(uchar**) &show_warnings, (uchar**) &show_warnings, 0, GET_BOOL, NO_ARG,
|
(uchar**) &show_warnings, (uchar**) &show_warnings, 0, GET_BOOL, NO_ARG,
|
||||||
0, 0, 0, 0, 0, 0},
|
0, 0, 0, 0, 0, 0},
|
||||||
|
{"comments", 'c', "Preserve comments. Send comments to the server."
|
||||||
|
" Comments are discarded by default, enable with --enable-comments",
|
||||||
|
(uchar**) &preserve_comments, (uchar**) &preserve_comments,
|
||||||
|
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||||
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
|
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1154,10 +1159,6 @@ static int read_and_execute(bool interactive)
|
|||||||
status.exit_status=0;
|
status.exit_status=0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!in_string && (line[0] == '#' ||
|
|
||||||
(line[0] == '-' && line[1] == '-') ||
|
|
||||||
line[0] == 0))
|
|
||||||
continue; // Skip comment lines
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Check if line is a mysql command line
|
Check if line is a mysql command line
|
||||||
@ -1283,15 +1284,21 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
|
|
||||||
for (pos=out=line ; (inchar= (uchar) *pos) ; pos++)
|
for (pos=out=line ; (inchar= (uchar) *pos) ; pos++)
|
||||||
{
|
{
|
||||||
if (my_isspace(charset_info,inchar) && out == line &&
|
if (!preserve_comments)
|
||||||
buffer.is_empty())
|
{
|
||||||
continue;
|
// Skip spaces at the beggining of a statement
|
||||||
|
if (my_isspace(charset_info,inchar) && (out == line) &&
|
||||||
|
buffer.is_empty())
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_MB
|
#ifdef USE_MB
|
||||||
|
// Accept multi-byte characters as-is
|
||||||
int length;
|
int length;
|
||||||
if (use_mb(charset_info) &&
|
if (use_mb(charset_info) &&
|
||||||
(length= my_ismbchar(charset_info, pos, end_of_line)))
|
(length= my_ismbchar(charset_info, pos, end_of_line)))
|
||||||
{
|
{
|
||||||
if (!*ml_comment)
|
if (!*ml_comment || preserve_comments)
|
||||||
{
|
{
|
||||||
while (length--)
|
while (length--)
|
||||||
*out++ = *pos++;
|
*out++ = *pos++;
|
||||||
@ -1317,8 +1324,13 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
}
|
}
|
||||||
if ((com=find_command(NullS,(char) inchar)))
|
if ((com=find_command(NullS,(char) inchar)))
|
||||||
{
|
{
|
||||||
const String tmp(line,(uint) (out-line), charset_info);
|
// Flush previously accepted characters
|
||||||
buffer.append(tmp);
|
if (out != line)
|
||||||
|
{
|
||||||
|
buffer.append(line, (uint) (out-line));
|
||||||
|
out= line;
|
||||||
|
}
|
||||||
|
|
||||||
if ((*com->func)(&buffer,pos-1) > 0)
|
if ((*com->func)(&buffer,pos-1) > 0)
|
||||||
DBUG_RETURN(1); // Quit
|
DBUG_RETURN(1); // Quit
|
||||||
if (com->takes_params)
|
if (com->takes_params)
|
||||||
@ -1346,7 +1358,6 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
pos+= delimiter_length - 1; // Point at last delim char
|
pos+= delimiter_length - 1; // Point at last delim char
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out=line;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1359,46 +1370,105 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!*ml_comment && !*in_string &&
|
else if (!*ml_comment && !*in_string &&
|
||||||
(*pos == *delimiter && is_prefix(pos + 1, delimiter + 1) ||
|
strlen(pos) >= 10 &&
|
||||||
buffer.length() == 0 && (out - line) >= 9 &&
|
!my_strnncoll(charset_info, (uchar*) pos, 10,
|
||||||
!my_strcasecmp(charset_info, line, "delimiter")))
|
(const uchar*) "delimiter ", 10))
|
||||||
{
|
{
|
||||||
uint old_delimiter_length= delimiter_length;
|
// Flush previously accepted characters
|
||||||
if (out != line)
|
if (out != line)
|
||||||
buffer.append(line, (uint) (out - line)); // Add this line
|
{
|
||||||
|
buffer.append(line, (uint32) (out - line));
|
||||||
|
out= line;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flush possible comments in the buffer
|
||||||
|
if (!buffer.is_empty())
|
||||||
|
{
|
||||||
|
if (com_go(&buffer, 0) > 0) // < 0 is not fatal
|
||||||
|
DBUG_RETURN(1);
|
||||||
|
buffer.length(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Delimiter wants the get rest of the given line as argument to
|
||||||
|
allow one to change ';' to ';;' and back
|
||||||
|
*/
|
||||||
|
buffer.append(pos);
|
||||||
|
if (com_delimiter(&buffer, pos) > 0)
|
||||||
|
DBUG_RETURN(1);
|
||||||
|
|
||||||
|
buffer.length(0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (!*ml_comment && !*in_string && is_prefix(pos, delimiter))
|
||||||
|
{
|
||||||
|
// Found a statement. Continue parsing after the delimiter
|
||||||
|
pos+= delimiter_length;
|
||||||
|
|
||||||
|
if (preserve_comments)
|
||||||
|
{
|
||||||
|
while (my_isspace(charset_info, *pos))
|
||||||
|
*out++= *pos++;
|
||||||
|
}
|
||||||
|
// Flush previously accepted characters
|
||||||
|
if (out != line)
|
||||||
|
{
|
||||||
|
buffer.append(line, (uint32) (out-line));
|
||||||
|
out= line;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (preserve_comments && ((*pos == '#') ||
|
||||||
|
((*pos == '-') &&
|
||||||
|
(pos[1] == '-') &&
|
||||||
|
my_isspace(charset_info, pos[2]))))
|
||||||
|
{
|
||||||
|
// Add trailing single line comments to this statement
|
||||||
|
buffer.append(pos);
|
||||||
|
pos+= strlen(pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
pos--;
|
||||||
|
|
||||||
if ((com= find_command(buffer.c_ptr(), 0)))
|
if ((com= find_command(buffer.c_ptr(), 0)))
|
||||||
{
|
{
|
||||||
if (com->func == com_delimiter)
|
|
||||||
{
|
if ((*com->func)(&buffer, buffer.c_ptr()) > 0)
|
||||||
/*
|
DBUG_RETURN(1); // Quit
|
||||||
Delimiter wants the get rest of the given line as argument to
|
|
||||||
allow one to change ';' to ';;' and back
|
|
||||||
*/
|
|
||||||
char *end= strend(pos);
|
|
||||||
buffer.append(pos, (uint) (end - pos));
|
|
||||||
/* Ensure pos will point at \0 after the pos+= below */
|
|
||||||
pos= end - old_delimiter_length + 1;
|
|
||||||
}
|
|
||||||
if ((*com->func)(&buffer, buffer.c_ptr()) > 0)
|
|
||||||
DBUG_RETURN(1); // Quit
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (com_go(&buffer, 0) > 0) // < 0 is not fatal
|
if (com_go(&buffer, 0) > 0) // < 0 is not fatal
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
buffer.length(0);
|
buffer.length(0);
|
||||||
out= line;
|
|
||||||
pos+= old_delimiter_length - 1;
|
|
||||||
}
|
}
|
||||||
else if (!*ml_comment && (!*in_string && (inchar == '#' ||
|
else if (!*ml_comment && (!*in_string && (inchar == '#' ||
|
||||||
inchar == '-' && pos[1] == '-' &&
|
inchar == '-' && pos[1] == '-' &&
|
||||||
my_isspace(charset_info,pos[2]))))
|
my_isspace(charset_info,pos[2]))))
|
||||||
break; // comment to end of line
|
{
|
||||||
|
// Flush previously accepted characters
|
||||||
|
if (out != line)
|
||||||
|
{
|
||||||
|
buffer.append(line, (uint32) (out - line));
|
||||||
|
out= line;
|
||||||
|
}
|
||||||
|
|
||||||
|
// comment to end of line
|
||||||
|
if (preserve_comments)
|
||||||
|
buffer.append(pos);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if (!*in_string && inchar == '/' && *(pos+1) == '*' &&
|
else if (!*in_string && inchar == '/' && *(pos+1) == '*' &&
|
||||||
*(pos+2) != '!')
|
*(pos+2) != '!')
|
||||||
{
|
{
|
||||||
pos++;
|
if (preserve_comments)
|
||||||
|
{
|
||||||
|
*out++= *pos++; // copy '/'
|
||||||
|
*out++= *pos; // copy '*'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
pos++;
|
||||||
*ml_comment= 1;
|
*ml_comment= 1;
|
||||||
if (out != line)
|
if (out != line)
|
||||||
{
|
{
|
||||||
@ -1408,8 +1478,21 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
}
|
}
|
||||||
else if (*ml_comment && !ss_comment && inchar == '*' && *(pos + 1) == '/')
|
else if (*ml_comment && !ss_comment && inchar == '*' && *(pos + 1) == '/')
|
||||||
{
|
{
|
||||||
pos++;
|
if (preserve_comments)
|
||||||
|
{
|
||||||
|
*out++= *pos++; // copy '*'
|
||||||
|
*out++= *pos; // copy '/'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
pos++;
|
||||||
*ml_comment= 0;
|
*ml_comment= 0;
|
||||||
|
if (out != line)
|
||||||
|
{
|
||||||
|
buffer.append(line, (uint32) (out - line));
|
||||||
|
out= line;
|
||||||
|
}
|
||||||
|
// Consumed a 2 chars or more, and will add 1 at most,
|
||||||
|
// so using the 'line' buffer to edit data in place is ok.
|
||||||
need_space= 1;
|
need_space= 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1424,14 +1507,12 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
else if (!*ml_comment && !*in_string &&
|
else if (!*ml_comment && !*in_string &&
|
||||||
(inchar == '\'' || inchar == '"' || inchar == '`'))
|
(inchar == '\'' || inchar == '"' || inchar == '`'))
|
||||||
*in_string= (char) inchar;
|
*in_string= (char) inchar;
|
||||||
if (!*ml_comment)
|
if (!*ml_comment || preserve_comments)
|
||||||
{
|
{
|
||||||
if (need_space && !my_isspace(charset_info, (char)inchar))
|
if (need_space && !my_isspace(charset_info, (char)inchar))
|
||||||
{
|
|
||||||
*out++= ' ';
|
*out++= ' ';
|
||||||
need_space= 0;
|
need_space= 0;
|
||||||
}
|
*out++= (char) inchar;
|
||||||
*out++= (char) inchar;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1441,7 +1522,7 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||||||
uint length=(uint) (out-line);
|
uint length=(uint) (out-line);
|
||||||
if (buffer.length() + length >= buffer.alloced_length())
|
if (buffer.length() + length >= buffer.alloced_length())
|
||||||
buffer.realloc(buffer.length()+length+IO_SIZE);
|
buffer.realloc(buffer.length()+length+IO_SIZE);
|
||||||
if (!(*ml_comment) && buffer.append(line,length))
|
if ((!*ml_comment || preserve_comments) && buffer.append(line, length))
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
@ -2366,6 +2447,7 @@ static char *fieldflags2str(uint f) {
|
|||||||
ff2s_check_flag(GROUP);
|
ff2s_check_flag(GROUP);
|
||||||
ff2s_check_flag(UNIQUE);
|
ff2s_check_flag(UNIQUE);
|
||||||
ff2s_check_flag(BINCMP);
|
ff2s_check_flag(BINCMP);
|
||||||
|
ff2s_check_flag(ON_UPDATE_NOW);
|
||||||
#undef ff2s_check_flag
|
#undef ff2s_check_flag
|
||||||
if (f)
|
if (f)
|
||||||
sprintf(s, " unknows=0x%04x", f);
|
sprintf(s, " unknows=0x%04x", f);
|
||||||
|
@ -1040,8 +1040,10 @@ static int fetch_db_collation(const char *db_name,
|
|||||||
char query[QUERY_LENGTH];
|
char query[QUERY_LENGTH];
|
||||||
MYSQL_RES *db_cl_res;
|
MYSQL_RES *db_cl_res;
|
||||||
MYSQL_ROW db_cl_row;
|
MYSQL_ROW db_cl_row;
|
||||||
|
char quoted_database_buf[NAME_LEN*2+3];
|
||||||
|
char *qdatabase= quote_name(db_name, quoted_database_buf, 1);
|
||||||
|
|
||||||
my_snprintf(query, sizeof (query), "use %s", db_name);
|
my_snprintf(query, sizeof (query), "use %s", qdatabase);
|
||||||
|
|
||||||
if (mysql_query_with_error_report(mysql, NULL, query))
|
if (mysql_query_with_error_report(mysql, NULL, query))
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -360,6 +360,17 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
|
|||||||
AC_MSG_ERROR([cannot disable mandatory plugin])
|
AC_MSG_ERROR([cannot disable mandatory plugin])
|
||||||
fi
|
fi
|
||||||
[mysql_plugin_]$2=yes
|
[mysql_plugin_]$2=yes
|
||||||
|
],[
|
||||||
|
case "$with_mysqld_ldflags " in
|
||||||
|
*"-all-static "*)
|
||||||
|
# No need to build shared plugins when mysqld is linked with
|
||||||
|
# -all-static as it won't be able to load them.
|
||||||
|
if test "X[$mysql_plugin_]$2" != Xyes -a \
|
||||||
|
"X[$with_plugin_]$2" != Xyes; then
|
||||||
|
[with_plugin_]$2=no
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
])
|
])
|
||||||
if test "X[$with_plugin_]$2" = Xno; then
|
if test "X[$with_plugin_]$2" = Xno; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
|
13
configure.in
13
configure.in
@ -1750,7 +1750,18 @@ then
|
|||||||
LDFLAGS="$LDFLAGS -rdynamic"
|
LDFLAGS="$LDFLAGS -rdynamic"
|
||||||
AC_MSG_RESULT("-rdynamic")
|
AC_MSG_RESULT("-rdynamic")
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT("none")
|
case "$SYSTEM_TYPE$with_mysqld_ldflags " in
|
||||||
|
*freebsd*"-all-static "*|*dragonfly*"-all-static "*)
|
||||||
|
AC_MSG_RESULT("none")
|
||||||
|
;;
|
||||||
|
*freebsd*|*dragonfly*)
|
||||||
|
MYSQLD_EXTRA_LDFLAGS="$MYSQLD_EXTRA_LDFLAGS -export-dynamic"
|
||||||
|
AC_MSG_RESULT("-export-dynamic")
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_RESULT("none")
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
@ -94,6 +94,7 @@ enum enum_server_command
|
|||||||
#define TIMESTAMP_FLAG 1024 /* Field is a timestamp */
|
#define TIMESTAMP_FLAG 1024 /* Field is a timestamp */
|
||||||
#define SET_FLAG 2048 /* field is a set */
|
#define SET_FLAG 2048 /* field is a set */
|
||||||
#define NO_DEFAULT_VALUE_FLAG 4096 /* Field doesn't have default value */
|
#define NO_DEFAULT_VALUE_FLAG 4096 /* Field doesn't have default value */
|
||||||
|
#define ON_UPDATE_NOW_FLAG 8192 /* Field is set to NOW on UPDATE */
|
||||||
#define NUM_FLAG 32768 /* Field is num (for clients) */
|
#define NUM_FLAG 32768 /* Field is num (for clients) */
|
||||||
#define PART_KEY_FLAG 16384 /* Intern; Part of some key */
|
#define PART_KEY_FLAG 16384 /* Intern; Part of some key */
|
||||||
#define GROUP_FLAG 32768 /* Intern: Group field */
|
#define GROUP_FLAG 32768 /* Intern: Group field */
|
||||||
|
@ -36,8 +36,10 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command,
|
|||||||
const unsigned char *arg, ulong arg_length,
|
const unsigned char *arg, ulong arg_length,
|
||||||
my_bool skip_check, MYSQL_STMT *stmt);
|
my_bool skip_check, MYSQL_STMT *stmt);
|
||||||
unsigned long cli_safe_read(MYSQL *mysql);
|
unsigned long cli_safe_read(MYSQL *mysql);
|
||||||
void set_stmt_errmsg(MYSQL_STMT * stmt, const char *err, int errcode,
|
void net_clear_error(NET *net);
|
||||||
const char *sqlstate);
|
void set_stmt_errmsg(MYSQL_STMT *stmt, NET *net);
|
||||||
|
void set_stmt_error(MYSQL_STMT *stmt, int errcode, const char *sqlstate,
|
||||||
|
const char *err);
|
||||||
void set_mysql_error(MYSQL *mysql, int errcode, const char *sqlstate);
|
void set_mysql_error(MYSQL *mysql, int errcode, const char *sqlstate);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -686,9 +686,7 @@ int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd)
|
|||||||
if (my_net_write(net, (uchar*) buff, SCRAMBLE_LENGTH_323 + 1) ||
|
if (my_net_write(net, (uchar*) buff, SCRAMBLE_LENGTH_323 + 1) ||
|
||||||
net_flush(net))
|
net_flush(net))
|
||||||
{
|
{
|
||||||
net->last_errno= CR_SERVER_LOST;
|
set_mysql_error(mysql, CR_SERVER_LOST, unknown_sqlstate);
|
||||||
strmov(net->sqlstate, unknown_sqlstate);
|
|
||||||
strmov(net->last_error,ER(net->last_errno));
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/* Read what server thinks about out new auth message report */
|
/* Read what server thinks about out new auth message report */
|
||||||
@ -701,7 +699,8 @@ int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd)
|
|||||||
my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
|
my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
|
||||||
const char *passwd, const char *db)
|
const char *passwd, const char *db)
|
||||||
{
|
{
|
||||||
char buff[512],*end=buff;
|
char buff[USERNAME_LENGTH+SCRAMBLED_PASSWORD_CHAR_LENGTH+NAME_LEN+2];
|
||||||
|
char *end= buff;
|
||||||
int rc;
|
int rc;
|
||||||
CHARSET_INFO *saved_cs= mysql->charset;
|
CHARSET_INFO *saved_cs= mysql->charset;
|
||||||
|
|
||||||
@ -723,7 +722,7 @@ my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
|
|||||||
passwd="";
|
passwd="";
|
||||||
|
|
||||||
/* Store user into the buffer */
|
/* Store user into the buffer */
|
||||||
end=strmov(end,user)+1;
|
end= strmake(end, user, USERNAME_LENGTH) + 1;
|
||||||
|
|
||||||
/* write scrambled password according to server capabilities */
|
/* write scrambled password according to server capabilities */
|
||||||
if (passwd[0])
|
if (passwd[0])
|
||||||
@ -743,7 +742,7 @@ my_bool STDCALL mysql_change_user(MYSQL *mysql, const char *user,
|
|||||||
else
|
else
|
||||||
*end++= '\0'; /* empty password */
|
*end++= '\0'; /* empty password */
|
||||||
/* Add database if needed */
|
/* Add database if needed */
|
||||||
end= strmov(end, db ? db : "") + 1;
|
end= strmake(end, db ? db : "", NAME_LEN) + 1;
|
||||||
|
|
||||||
/* Add character set number. */
|
/* Add character set number. */
|
||||||
|
|
||||||
@ -860,8 +859,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename)
|
|||||||
/* copy filename into local memory and allocate read buffer */
|
/* copy filename into local memory and allocate read buffer */
|
||||||
if (!(buf=my_malloc(packet_length, MYF(0))))
|
if (!(buf=my_malloc(packet_length, MYF(0))))
|
||||||
{
|
{
|
||||||
strmov(net->sqlstate, unknown_sqlstate);
|
set_mysql_error(mysql, CR_OUT_OF_MEMORY, unknown_sqlstate);
|
||||||
strmov(net->last_error, ER(net->last_errno=CR_OUT_OF_MEMORY));
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -887,9 +885,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename)
|
|||||||
{
|
{
|
||||||
DBUG_PRINT("error",
|
DBUG_PRINT("error",
|
||||||
("Lost connection to MySQL server during LOAD DATA of local file"));
|
("Lost connection to MySQL server during LOAD DATA of local file"));
|
||||||
strmov(net->sqlstate, unknown_sqlstate);
|
set_mysql_error(mysql, CR_SERVER_LOST, unknown_sqlstate);
|
||||||
net->last_errno=CR_SERVER_LOST;
|
|
||||||
strmov(net->last_error,ER(net->last_errno));
|
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -897,9 +893,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename)
|
|||||||
/* Send empty packet to mark end of file */
|
/* Send empty packet to mark end of file */
|
||||||
if (my_net_write(net, (const uchar*) "", 0) || net_flush(net))
|
if (my_net_write(net, (const uchar*) "", 0) || net_flush(net))
|
||||||
{
|
{
|
||||||
strmov(net->sqlstate, unknown_sqlstate);
|
set_mysql_error(mysql, CR_SERVER_LOST, unknown_sqlstate);
|
||||||
net->last_errno=CR_SERVER_LOST;
|
|
||||||
sprintf(net->last_error,ER(net->last_errno),errno);
|
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1400,9 +1394,7 @@ const char *cli_read_statistics(MYSQL *mysql)
|
|||||||
mysql->net.read_pos[mysql->packet_length]=0; /* End of stat string */
|
mysql->net.read_pos[mysql->packet_length]=0; /* End of stat string */
|
||||||
if (!mysql->net.read_pos[0])
|
if (!mysql->net.read_pos[0])
|
||||||
{
|
{
|
||||||
strmov(mysql->net.sqlstate, unknown_sqlstate);
|
set_mysql_error(mysql, CR_WRONG_HOST_INFO, unknown_sqlstate);
|
||||||
mysql->net.last_errno=CR_WRONG_HOST_INFO;
|
|
||||||
strmov(mysql->net.last_error, ER(mysql->net.last_errno));
|
|
||||||
return mysql->net.last_error;
|
return mysql->net.last_error;
|
||||||
}
|
}
|
||||||
return (char*) mysql->net.read_pos;
|
return (char*) mysql->net.read_pos;
|
||||||
@ -1848,24 +1840,17 @@ static my_bool my_realloc_str(NET *net, ulong length)
|
|||||||
if (buf_length + length > net->max_packet)
|
if (buf_length + length > net->max_packet)
|
||||||
{
|
{
|
||||||
res= net_realloc(net, buf_length + length);
|
res= net_realloc(net, buf_length + length);
|
||||||
|
if (res)
|
||||||
|
{
|
||||||
|
strmov(net->sqlstate, unknown_sqlstate);
|
||||||
|
strmov(net->last_error, ER(net->last_errno));
|
||||||
|
}
|
||||||
net->write_pos= net->buff+ buf_length;
|
net->write_pos= net->buff+ buf_length;
|
||||||
}
|
}
|
||||||
DBUG_RETURN(res);
|
DBUG_RETURN(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Clear possible error statee of struct NET */
|
|
||||||
|
|
||||||
static void net_clear_error(NET *net)
|
|
||||||
{
|
|
||||||
if (net->last_errno)
|
|
||||||
{
|
|
||||||
net->last_errno= 0;
|
|
||||||
net->last_error[0]= '\0';
|
|
||||||
strmov(net->sqlstate, not_error_sqlstate);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void stmt_clear_error(MYSQL_STMT *stmt)
|
static void stmt_clear_error(MYSQL_STMT *stmt)
|
||||||
{
|
{
|
||||||
if (stmt->last_errno)
|
if (stmt->last_errno)
|
||||||
@ -1876,18 +1861,21 @@ static void stmt_clear_error(MYSQL_STMT *stmt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Set statement error code, sqlstate, and error message
|
Set statement error code, sqlstate, and error message
|
||||||
from given errcode and sqlstate.
|
from given errcode and sqlstate.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void set_stmt_error(MYSQL_STMT * stmt, int errcode,
|
void set_stmt_error(MYSQL_STMT * stmt, int errcode,
|
||||||
const char *sqlstate)
|
const char *sqlstate, const char *err)
|
||||||
{
|
{
|
||||||
DBUG_ENTER("set_stmt_error");
|
DBUG_ENTER("set_stmt_error");
|
||||||
DBUG_PRINT("enter", ("error: %d '%s'", errcode, ER(errcode)));
|
DBUG_PRINT("enter", ("error: %d '%s'", errcode, ER(errcode)));
|
||||||
DBUG_ASSERT(stmt != 0);
|
DBUG_ASSERT(stmt != 0);
|
||||||
|
|
||||||
|
if (err == 0)
|
||||||
|
err= ER(errcode);
|
||||||
|
|
||||||
stmt->last_errno= errcode;
|
stmt->last_errno= errcode;
|
||||||
strmov(stmt->last_error, ER(errcode));
|
strmov(stmt->last_error, ER(errcode));
|
||||||
strmov(stmt->sqlstate, sqlstate);
|
strmov(stmt->sqlstate, sqlstate);
|
||||||
@ -1896,21 +1884,24 @@ static void set_stmt_error(MYSQL_STMT * stmt, int errcode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
Set statement error code, sqlstate, and error message.
|
Set statement error code, sqlstate, and error message from NET.
|
||||||
|
|
||||||
|
@param stmt a statement handle. Copy the error here.
|
||||||
|
@param net mysql->net. Source of the error.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void set_stmt_errmsg(MYSQL_STMT * stmt, const char *err, int errcode,
|
void set_stmt_errmsg(MYSQL_STMT *stmt, NET *net)
|
||||||
const char *sqlstate)
|
|
||||||
{
|
{
|
||||||
DBUG_ENTER("set_stmt_errmsg");
|
DBUG_ENTER("set_stmt_errmsg");
|
||||||
DBUG_PRINT("enter", ("error: %d/%s '%s'", errcode, sqlstate, err));
|
DBUG_PRINT("enter", ("error: %d/%s '%s'", net->last_errno, net->sqlstate,
|
||||||
|
net->last_error));
|
||||||
DBUG_ASSERT(stmt != 0);
|
DBUG_ASSERT(stmt != 0);
|
||||||
|
|
||||||
stmt->last_errno= errcode;
|
stmt->last_errno= net->last_errno;
|
||||||
if (err && err[0])
|
if (net->last_error && net->last_error[0])
|
||||||
strmov(stmt->last_error, err);
|
strmov(stmt->last_error, net->last_error);
|
||||||
strmov(stmt->sqlstate, sqlstate);
|
strmov(stmt->sqlstate, net->sqlstate);
|
||||||
|
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
@ -2085,7 +2076,7 @@ mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, ulong length)
|
|||||||
if (!mysql)
|
if (!mysql)
|
||||||
{
|
{
|
||||||
/* mysql can be reset in mysql_close called from mysql_reconnect */
|
/* mysql can be reset in mysql_close called from mysql_reconnect */
|
||||||
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2123,23 +2114,20 @@ mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, ulong length)
|
|||||||
stmt->state= MYSQL_STMT_INIT_DONE;
|
stmt->state= MYSQL_STMT_INIT_DONE;
|
||||||
if (stmt_command(mysql, COM_STMT_CLOSE, buff, 4, stmt))
|
if (stmt_command(mysql, COM_STMT_CLOSE, buff, 4, stmt))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stmt_command(mysql, COM_STMT_PREPARE, (const uchar*) query, length, stmt))
|
if (stmt_command(mysql, COM_STMT_PREPARE, (const uchar*) query, length, stmt))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*mysql->methods->read_prepare_result)(mysql, stmt))
|
if ((*mysql->methods->read_prepare_result)(mysql, stmt))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2154,7 +2142,7 @@ mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, ulong length)
|
|||||||
(stmt->param_count +
|
(stmt->param_count +
|
||||||
stmt->field_count))))
|
stmt->field_count))))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate);
|
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
stmt->bind= stmt->params + stmt->param_count;
|
stmt->bind= stmt->params + stmt->param_count;
|
||||||
@ -2284,7 +2272,7 @@ mysql_stmt_result_metadata(MYSQL_STMT *stmt)
|
|||||||
if (!(result=(MYSQL_RES*) my_malloc(sizeof(*result),
|
if (!(result=(MYSQL_RES*) my_malloc(sizeof(*result),
|
||||||
MYF(MY_WME | MY_ZEROFILL))))
|
MYF(MY_WME | MY_ZEROFILL))))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate);
|
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2517,7 +2505,7 @@ static my_bool store_param(MYSQL_STMT *stmt, MYSQL_BIND *param)
|
|||||||
*/
|
*/
|
||||||
if ((my_realloc_str(net, *param->length)))
|
if ((my_realloc_str(net, *param->length)))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, net->last_errno, unknown_sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
(*param->store_param_func)(net, param);
|
(*param->store_param_func)(net, param);
|
||||||
@ -2554,7 +2542,7 @@ static my_bool execute(MYSQL_STMT *stmt, char *packet, ulong length)
|
|||||||
stmt->insert_id= mysql->insert_id;
|
stmt->insert_id= mysql->insert_id;
|
||||||
if (res)
|
if (res)
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
@ -2577,13 +2565,13 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
|
|||||||
|
|
||||||
if (!stmt->bind_param_done)
|
if (!stmt->bind_param_done)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_PARAMS_NOT_BOUND, unknown_sqlstate);
|
set_stmt_error(stmt, CR_PARAMS_NOT_BOUND, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
if (mysql->status != MYSQL_STATUS_READY ||
|
if (mysql->status != MYSQL_STATUS_READY ||
|
||||||
mysql->server_status & SERVER_MORE_RESULTS_EXISTS)
|
mysql->server_status & SERVER_MORE_RESULTS_EXISTS)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate);
|
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2592,7 +2580,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
|
|||||||
null_count= (stmt->param_count+7) /8;
|
null_count= (stmt->param_count+7) /8;
|
||||||
if (my_realloc_str(net, null_count + 1))
|
if (my_realloc_str(net, null_count + 1))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, net->last_errno, unknown_sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
bzero((char*) net->write_pos, null_count);
|
bzero((char*) net->write_pos, null_count);
|
||||||
@ -2605,7 +2593,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
|
|||||||
{
|
{
|
||||||
if (my_realloc_str(net, 2 * stmt->param_count))
|
if (my_realloc_str(net, 2 * stmt->param_count))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, net->last_errno, unknown_sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@ -2628,7 +2616,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
|
|||||||
/* TODO: Look into avoding the following memdup */
|
/* TODO: Look into avoding the following memdup */
|
||||||
if (!(param_data= my_memdup(net->buff, length, MYF(0))))
|
if (!(param_data= my_memdup(net->buff, length, MYF(0))))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate);
|
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
result= execute(stmt, param_data, length);
|
result= execute(stmt, param_data, length);
|
||||||
@ -2692,20 +2680,19 @@ static int stmt_read_row_unbuffered(MYSQL_STMT *stmt, unsigned char **row)
|
|||||||
*/
|
*/
|
||||||
if (!mysql)
|
if (!mysql)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (mysql->status != MYSQL_STATUS_GET_RESULT)
|
if (mysql->status != MYSQL_STATUS_GET_RESULT)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, stmt->unbuffered_fetch_cancelled ?
|
set_stmt_error(stmt, stmt->unbuffered_fetch_cancelled ?
|
||||||
CR_FETCH_CANCELED : CR_COMMANDS_OUT_OF_SYNC,
|
CR_FETCH_CANCELED : CR_COMMANDS_OUT_OF_SYNC,
|
||||||
unknown_sqlstate);
|
unknown_sqlstate, NULL);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if ((*mysql->methods->unbuffered_fetch)(mysql, (char**) row))
|
if ((*mysql->methods->unbuffered_fetch)(mysql, (char**) row))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
/*
|
/*
|
||||||
If there was an error, there are no more pending rows:
|
If there was an error, there are no more pending rows:
|
||||||
reset statement status to not hang up in following
|
reset statement status to not hang up in following
|
||||||
@ -2766,7 +2753,7 @@ stmt_read_row_from_cursor(MYSQL_STMT *stmt, unsigned char **row)
|
|||||||
buff, sizeof(buff), (uchar*) 0, 0,
|
buff, sizeof(buff), (uchar*) 0, 0,
|
||||||
1, NULL))
|
1, NULL))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if ((*mysql->methods->read_rows_from_cursor)(stmt))
|
if ((*mysql->methods->read_rows_from_cursor)(stmt))
|
||||||
@ -2797,7 +2784,7 @@ static int
|
|||||||
stmt_read_row_no_result_set(MYSQL_STMT *stmt __attribute__((unused)),
|
stmt_read_row_no_result_set(MYSQL_STMT *stmt __attribute__((unused)),
|
||||||
unsigned char **row __attribute__((unused)))
|
unsigned char **row __attribute__((unused)))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_NO_RESULT_SET, unknown_sqlstate);
|
set_stmt_error(stmt, CR_NO_RESULT_SET, unknown_sqlstate, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2847,7 +2834,7 @@ my_bool STDCALL mysql_stmt_attr_set(MYSQL_STMT *stmt,
|
|||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
err_not_implemented:
|
err_not_implemented:
|
||||||
set_stmt_error(stmt, CR_NOT_IMPLEMENTED, unknown_sqlstate);
|
set_stmt_error(stmt, CR_NOT_IMPLEMENTED, unknown_sqlstate, NULL);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3232,7 +3219,7 @@ my_bool STDCALL mysql_stmt_bind_param(MYSQL_STMT *stmt, MYSQL_BIND *my_bind)
|
|||||||
{
|
{
|
||||||
if ((int) stmt->state < (int) MYSQL_STMT_PREPARE_DONE)
|
if ((int) stmt->state < (int) MYSQL_STMT_PREPARE_DONE)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_NO_PREPARE_STMT, unknown_sqlstate);
|
set_stmt_error(stmt, CR_NO_PREPARE_STMT, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
@ -3397,7 +3384,7 @@ mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number,
|
|||||||
*/
|
*/
|
||||||
if (param_number >= stmt->param_count)
|
if (param_number >= stmt->param_count)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_INVALID_PARAMETER_NO, unknown_sqlstate);
|
set_stmt_error(stmt, CR_INVALID_PARAMETER_NO, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3433,8 +3420,7 @@ mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number,
|
|||||||
buff, sizeof(buff), (uchar*) data,
|
buff, sizeof(buff), (uchar*) data,
|
||||||
length, 1, NULL))
|
length, 1, NULL))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.last_errno, mysql->net.sqlstate);
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3903,7 +3889,8 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
|
|||||||
if (field->flags & ZEROFILL_FLAG && length < field->length &&
|
if (field->flags & ZEROFILL_FLAG && length < field->length &&
|
||||||
field->length < MAX_DOUBLE_STRING_REP_LENGTH - 1)
|
field->length < MAX_DOUBLE_STRING_REP_LENGTH - 1)
|
||||||
{
|
{
|
||||||
bmove_upp((char*) buff + field->length, buff + length, length);
|
bmove_upp((uchar*) buff + field->length, (uchar*) buff + length,
|
||||||
|
length);
|
||||||
bfill((char*) buff, field->length - length, '0');
|
bfill((char*) buff, field->length - length, '0');
|
||||||
length= field->length;
|
length= field->length;
|
||||||
}
|
}
|
||||||
@ -4502,7 +4489,7 @@ my_bool STDCALL mysql_stmt_bind_result(MYSQL_STMT *stmt, MYSQL_BIND *my_bind)
|
|||||||
{
|
{
|
||||||
int errorcode= (int) stmt->state < (int) MYSQL_STMT_PREPARE_DONE ?
|
int errorcode= (int) stmt->state < (int) MYSQL_STMT_PREPARE_DONE ?
|
||||||
CR_NO_PREPARE_STMT : CR_NO_STMT_METADATA;
|
CR_NO_PREPARE_STMT : CR_NO_STMT_METADATA;
|
||||||
set_stmt_error(stmt, errorcode, unknown_sqlstate);
|
set_stmt_error(stmt, errorcode, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4682,12 +4669,12 @@ int STDCALL mysql_stmt_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *my_bind,
|
|||||||
|
|
||||||
if ((int) stmt->state < (int) MYSQL_STMT_FETCH_DONE)
|
if ((int) stmt->state < (int) MYSQL_STMT_FETCH_DONE)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_NO_DATA, unknown_sqlstate);
|
set_stmt_error(stmt, CR_NO_DATA, unknown_sqlstate, NULL);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (column >= stmt->field_count)
|
if (column >= stmt->field_count)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_INVALID_PARAMETER_NO, unknown_sqlstate);
|
set_stmt_error(stmt, CR_INVALID_PARAMETER_NO, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4733,7 +4720,7 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
|
|
||||||
if (!mysql)
|
if (!mysql)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4748,7 +4735,7 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
if (!(cur= (MYSQL_ROWS*) alloc_root(&result->alloc,
|
if (!(cur= (MYSQL_ROWS*) alloc_root(&result->alloc,
|
||||||
sizeof(MYSQL_ROWS) + pkt_len - 1)))
|
sizeof(MYSQL_ROWS) + pkt_len - 1)))
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate);
|
set_stmt_error(stmt, CR_OUT_OF_MEMORY, unknown_sqlstate, NULL);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
cur->data= (MYSQL_ROW) (cur+1);
|
cur->data= (MYSQL_ROW) (cur+1);
|
||||||
@ -4769,7 +4756,7 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
|
|
||||||
err:
|
err:
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
@ -4836,7 +4823,7 @@ int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
|
|||||||
|
|
||||||
if ((int) stmt->state < (int) MYSQL_STMT_EXECUTE_DONE)
|
if ((int) stmt->state < (int) MYSQL_STMT_EXECUTE_DONE)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate);
|
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4856,13 +4843,13 @@ int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
|
|||||||
if (cli_advanced_command(mysql, COM_STMT_FETCH, buff, sizeof(buff),
|
if (cli_advanced_command(mysql, COM_STMT_FETCH, buff, sizeof(buff),
|
||||||
(uchar*) 0, 0, 1, NULL))
|
(uchar*) 0, 0, 1, NULL))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mysql->status != MYSQL_STATUS_GET_RESULT)
|
else if (mysql->status != MYSQL_STATUS_GET_RESULT)
|
||||||
{
|
{
|
||||||
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate);
|
set_stmt_error(stmt, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5043,8 +5030,7 @@ static my_bool reset_stmt_handle(MYSQL_STMT *stmt, uint flags)
|
|||||||
if ((*mysql->methods->advanced_command)(mysql, COM_STMT_RESET, buff,
|
if ((*mysql->methods->advanced_command)(mysql, COM_STMT_RESET, buff,
|
||||||
sizeof(buff), 0, 0, 0, NULL))
|
sizeof(buff), 0, 0, 0, NULL))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
stmt->state= MYSQL_STMT_INIT_DONE;
|
stmt->state= MYSQL_STMT_INIT_DONE;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -5117,8 +5103,7 @@ my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
|
|||||||
int4store(buff, stmt->stmt_id);
|
int4store(buff, stmt->stmt_id);
|
||||||
if ((rc= stmt_command(mysql, COM_STMT_CLOSE, buff, 4, stmt)))
|
if ((rc= stmt_command(mysql, COM_STMT_CLOSE, buff, 4, stmt)))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.sqlstate);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5139,7 +5124,7 @@ my_bool STDCALL mysql_stmt_reset(MYSQL_STMT *stmt)
|
|||||||
if (!stmt->mysql)
|
if (!stmt->mysql)
|
||||||
{
|
{
|
||||||
/* mysql can be reset in mysql_close called from mysql_reconnect */
|
/* mysql can be reset in mysql_close called from mysql_reconnect */
|
||||||
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate, NULL);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
/* Reset the client and server sides of the prepared statement */
|
/* Reset the client and server sides of the prepared statement */
|
||||||
@ -5243,15 +5228,11 @@ int STDCALL mysql_next_result(MYSQL *mysql)
|
|||||||
|
|
||||||
if (mysql->status != MYSQL_STATUS_READY)
|
if (mysql->status != MYSQL_STATUS_READY)
|
||||||
{
|
{
|
||||||
strmov(mysql->net.sqlstate, unknown_sqlstate);
|
set_mysql_error(mysql, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate);
|
||||||
strmov(mysql->net.last_error,
|
|
||||||
ER(mysql->net.last_errno=CR_COMMANDS_OUT_OF_SYNC));
|
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql->net.last_error[0]= 0;
|
net_clear_error(&mysql->net);
|
||||||
mysql->net.last_errno= 0;
|
|
||||||
strmov(mysql->net.sqlstate, not_error_sqlstate);
|
|
||||||
mysql->affected_rows= ~(my_ulonglong) 0;
|
mysql->affected_rows= ~(my_ulonglong) 0;
|
||||||
|
|
||||||
if (mysql->last_used_con->server_status & SERVER_MORE_RESULTS_EXISTS)
|
if (mysql->last_used_con->server_status & SERVER_MORE_RESULTS_EXISTS)
|
||||||
|
@ -81,8 +81,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
|
|||||||
/* Check that we are calling the client functions in right order */
|
/* Check that we are calling the client functions in right order */
|
||||||
if (mysql->status != MYSQL_STATUS_READY)
|
if (mysql->status != MYSQL_STATUS_READY)
|
||||||
{
|
{
|
||||||
strmov(net->last_error,
|
set_mysql_error(mysql, CR_COMMANDS_OUT_OF_SYNC, unknown_sqlstate);
|
||||||
ER(net->last_errno=CR_COMMANDS_OUT_OF_SYNC));
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,10 +89,11 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
|
|||||||
thd->clear_error();
|
thd->clear_error();
|
||||||
mysql->affected_rows= ~(my_ulonglong) 0;
|
mysql->affected_rows= ~(my_ulonglong) 0;
|
||||||
mysql->field_count= 0;
|
mysql->field_count= 0;
|
||||||
net->last_errno= 0;
|
net_clear_error(net);
|
||||||
thd->current_stmt= stmt;
|
thd->current_stmt= stmt;
|
||||||
|
|
||||||
thd->store_globals(); // Fix if more than one connect
|
thd->store_globals(); // Fix if more than one connect
|
||||||
|
lex_start(thd);
|
||||||
/*
|
/*
|
||||||
We have to call free_old_query before we start to fill mysql->fields
|
We have to call free_old_query before we start to fill mysql->fields
|
||||||
for new query. In the case of embedded server we collect field data
|
for new query. In the case of embedded server we collect field data
|
||||||
@ -245,8 +245,7 @@ static my_bool emb_read_query_result(MYSQL *mysql)
|
|||||||
mysql->fields= res->embedded_info->fields_list;
|
mysql->fields= res->embedded_info->fields_list;
|
||||||
mysql->affected_rows= res->embedded_info->affected_rows;
|
mysql->affected_rows= res->embedded_info->affected_rows;
|
||||||
mysql->insert_id= res->embedded_info->insert_id;
|
mysql->insert_id= res->embedded_info->insert_id;
|
||||||
mysql->net.last_errno= 0;
|
net_clear_error(&mysql->net);
|
||||||
mysql->net.last_error[0]= 0;
|
|
||||||
mysql->info= 0;
|
mysql->info= 0;
|
||||||
|
|
||||||
if (res->embedded_info->info[0])
|
if (res->embedded_info->info[0])
|
||||||
@ -288,7 +287,7 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
|
|||||||
if (res)
|
if (res)
|
||||||
{
|
{
|
||||||
NET *net= &stmt->mysql->net;
|
NET *net= &stmt->mysql->net;
|
||||||
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
|
set_stmt_errmsg(stmt, net);
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
@ -299,14 +298,12 @@ int emb_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
MYSQL_DATA *data;
|
MYSQL_DATA *data;
|
||||||
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
|
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
|
||||||
{
|
{
|
||||||
set_stmt_errmsg(stmt, stmt->mysql->net.last_error,
|
set_stmt_errmsg(stmt, &stmt->mysql->net);
|
||||||
stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
stmt->result= *data;
|
stmt->result= *data;
|
||||||
my_free((char *) data, MYF(0));
|
my_free((char *) data, MYF(0));
|
||||||
set_stmt_errmsg(stmt, stmt->mysql->net.last_error,
|
set_stmt_errmsg(stmt, &stmt->mysql->net);
|
||||||
stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,16 +317,14 @@ int emb_read_rows_from_cursor(MYSQL_STMT *stmt)
|
|||||||
if (res->embedded_info->last_errno)
|
if (res->embedded_info->last_errno)
|
||||||
{
|
{
|
||||||
embedded_get_error(mysql, res);
|
embedded_get_error(mysql, res);
|
||||||
set_stmt_errmsg(stmt, mysql->net.last_error,
|
set_stmt_errmsg(stmt, &mysql->net);
|
||||||
mysql->net.last_errno, mysql->net.sqlstate);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
thd->cur_data= res;
|
thd->cur_data= res;
|
||||||
mysql->warning_count= res->embedded_info->warning_count;
|
mysql->warning_count= res->embedded_info->warning_count;
|
||||||
mysql->server_status= res->embedded_info->server_status;
|
mysql->server_status= res->embedded_info->server_status;
|
||||||
mysql->net.last_errno= 0;
|
net_clear_error(&mysql->net);
|
||||||
mysql->net.last_error[0]= 0;
|
|
||||||
|
|
||||||
return emb_read_binary_rows(stmt);
|
return emb_read_binary_rows(stmt);
|
||||||
}
|
}
|
||||||
@ -586,6 +581,7 @@ void *create_embedded_thd(int client_flag)
|
|||||||
fprintf(stderr,"store_globals failed.\n");
|
fprintf(stderr,"store_globals failed.\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
lex_start(thd);
|
||||||
|
|
||||||
/* TODO - add init_connect command execution */
|
/* TODO - add init_connect command execution */
|
||||||
|
|
||||||
|
@ -13,20 +13,20 @@ CREATE TABLE t2 (p POINT, INDEX(p));
|
|||||||
INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
||||||
INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
||||||
|
|
||||||
-- no index, returns 1 as expected
|
# no index, returns 1 as expected
|
||||||
SELECT COUNT(*) FROM t1 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
SELECT COUNT(*) FROM t1 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
||||||
|
|
||||||
-- with index, returns 1 as expected
|
# with index, returns 1 as expected
|
||||||
-- EXPLAIN shows that the index is not used though
|
# EXPLAIN shows that the index is not used though
|
||||||
-- due to the "most rows covered anyway, so a scan is more effective" rule
|
# due to the "most rows covered anyway, so a scan is more effective" rule
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
||||||
SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
|
||||||
|
|
||||||
-- adding another row to the table so that
|
# adding another row to the table so that
|
||||||
-- the "most rows covered" rule doesn't kick in anymore
|
# the "most rows covered" rule doesn't kick in anymore
|
||||||
-- now EXPLAIN shows the index used on the table
|
# now EXPLAIN shows the index used on the table
|
||||||
-- and we're getting the wrong result again
|
# and we're getting the wrong result again
|
||||||
INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
INSERT INTO t1 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
||||||
INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
INSERT INTO t2 VALUES (POINTFROMTEXT('POINT(1 2)'));
|
||||||
EXPLAIN
|
EXPLAIN
|
||||||
|
@ -566,3 +566,35 @@ reap;
|
|||||||
connection default;
|
connection default;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
disconnect flush;
|
disconnect flush;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#30882 Dropping a temporary table inside a stored function may cause a server crash
|
||||||
|
#
|
||||||
|
# Test HANDLER statements in conjunction with temporary tables. While the temporary table
|
||||||
|
# is open by a HANDLER, no other statement can access it.
|
||||||
|
#
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1;
|
||||||
|
--enable_warnings
|
||||||
|
create temporary table t1 (a int, b char(1), key a(a), key b(a,b));
|
||||||
|
insert into t1 values (0,"a"),(1,"b"),(2,"c"),(3,"d"),(4,"e"),
|
||||||
|
(5,"f"),(6,"g"),(7,"h"),(8,"i"),(9,"j");
|
||||||
|
select a,b from t1;
|
||||||
|
handler t1 open as a1;
|
||||||
|
handler a1 read a first;
|
||||||
|
handler a1 read a next;
|
||||||
|
handler a1 read a next;
|
||||||
|
--error ER_CANT_REOPEN_TABLE
|
||||||
|
select a,b from t1;
|
||||||
|
handler a1 read a prev;
|
||||||
|
handler a1 read a prev;
|
||||||
|
handler a1 read a=(6) where b="g";
|
||||||
|
handler a1 close;
|
||||||
|
select a,b from t1;
|
||||||
|
handler t1 open as a2;
|
||||||
|
handler a2 read a first;
|
||||||
|
handler a2 read a last;
|
||||||
|
handler a2 read a prev;
|
||||||
|
handler a2 close;
|
||||||
|
drop table t1;
|
||||||
|
@ -1020,6 +1020,55 @@ SELECT * FROM t1 ORDER BY b DESC, a ASC;
|
|||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo #
|
||||||
|
--echo # Bug#27610: ALTER TABLE ROW_FORMAT=... does not rebuild the table.
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo # - prepare;
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
CREATE TABLE t1(c INT)
|
||||||
|
ENGINE = InnoDB
|
||||||
|
ROW_FORMAT = COMPACT;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo # - initial check;
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SELECT table_schema, table_name, row_format
|
||||||
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
|
WHERE table_schema = DATABASE() AND table_name = 't1';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo # - change ROW_FORMAT and check;
|
||||||
|
--echo
|
||||||
|
|
||||||
|
ALTER TABLE t1 ROW_FORMAT = REDUNDANT;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SELECT table_schema, table_name, row_format
|
||||||
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
|
WHERE table_schema = DATABASE() AND table_name = 't1';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo # - that's it, cleanup.
|
||||||
|
--echo
|
||||||
|
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
|
||||||
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
|
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
|
||||||
@ -1163,7 +1212,7 @@ CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(256))
|
|||||||
ENGINE = $engine_type;
|
ENGINE = $engine_type;
|
||||||
INSERT INTO t1 VALUES (1,2);
|
INSERT INTO t1 VALUES (1,2);
|
||||||
|
|
||||||
--#echo 1. test for locking:
|
--echo # 1. test for locking:
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
--enable_info
|
--enable_info
|
||||||
|
@ -3754,7 +3754,9 @@ sub mysqld_arguments ($$$$) {
|
|||||||
# When mysqld is run by a root user(euid is 0), it will fail
|
# When mysqld is run by a root user(euid is 0), it will fail
|
||||||
# to start unless we specify what user to run as. If not running
|
# to start unless we specify what user to run as. If not running
|
||||||
# as root it will be ignored, see BUG#30630
|
# as root it will be ignored, see BUG#30630
|
||||||
if (!(grep(/^--user/, @$extra_opt, @opt_extra_mysqld_opt))) {
|
my $euid= $>;
|
||||||
|
if (!$glob_win32 and $euid == 0 and
|
||||||
|
grep(/^--user/, @$extra_opt, @opt_extra_mysqld_opt) == 0) {
|
||||||
mtr_add_arg($args, "%s--user=root");
|
mtr_add_arg($args, "%s--user=root");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
29
mysql-test/r/almost_full.result
Normal file
29
mysql-test/r/almost_full.result
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
drop table if exists t1;
|
||||||
|
set global myisam_data_pointer_size=2;
|
||||||
|
CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
|
||||||
|
DELETE FROM t1 WHERE a=1 or a=5;
|
||||||
|
INSERT INTO t1 SET b=repeat('a',600);
|
||||||
|
ERROR HY000: The table 't1' is full
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 check warning Datafile is almost full, 65448 of 65534 used
|
||||||
|
test.t1 check status OK
|
||||||
|
UPDATE t1 SET b=repeat('a', 800) where a=10;
|
||||||
|
ERROR HY000: The table 't1' is full
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 check warning Datafile is almost full, 65448 of 65534 used
|
||||||
|
test.t1 check status OK
|
||||||
|
INSERT INTO t1 SET b=repeat('a',400);
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 check warning Datafile is almost full, 65448 of 65534 used
|
||||||
|
test.t1 check status OK
|
||||||
|
DELETE FROM t1 WHERE a=2 or a=6;
|
||||||
|
UPDATE t1 SET b=repeat('a', 600) where a=11;
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 check warning Datafile is almost full, 65448 of 65534 used
|
||||||
|
test.t1 check status OK
|
||||||
|
drop table t1;
|
||||||
|
set global myisam_data_pointer_size=default;
|
@ -12683,3 +12683,7 @@ check table t1 extended;
|
|||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
test.t1 check status OK
|
test.t1 check status OK
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1(a VARCHAR(510)) ENGINE = ARCHIVE;
|
||||||
|
INSERT INTO t1(a) VALUES ('');
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -5,9 +5,9 @@ CREATE TABLE t3 (b INT AUTO_INCREMENT PRIMARY KEY);
|
|||||||
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
|
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
|
||||||
INSERT INTO t1 SELECT UUID();
|
INSERT INTO t1 SELECT UUID();
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1591 Statement is not safe to log in statement format.
|
Warning 1592 Statement is not safe to log in statement format.
|
||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Warning
|
Level Warning
|
||||||
Code 1591
|
Code 1592
|
||||||
Message Statement is not safe to log in statement format.
|
Message Statement is not safe to log in statement format.
|
||||||
DROP TABLE t1,t2,t3;
|
DROP TABLE t1,t2,t3;
|
||||||
|
@ -414,4 +414,28 @@ NULL
|
|||||||
NULL
|
NULL
|
||||||
20070719
|
20070719
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (f1 DATE);
|
||||||
|
INSERT INTO t1 VALUES ('2007-07-19'), (NULL);
|
||||||
|
SELECT HOUR(f1),
|
||||||
|
MINUTE(f1),
|
||||||
|
SECOND(f1) FROM t1;
|
||||||
|
HOUR(f1) MINUTE(f1) SECOND(f1)
|
||||||
|
0 0 0
|
||||||
|
NULL NULL NULL
|
||||||
|
SELECT HOUR(CAST('2007-07-19' AS DATE)),
|
||||||
|
MINUTE(CAST('2007-07-19' AS DATE)),
|
||||||
|
SECOND(CAST('2007-07-19' AS DATE));
|
||||||
|
HOUR(CAST('2007-07-19' AS DATE)) MINUTE(CAST('2007-07-19' AS DATE)) SECOND(CAST('2007-07-19' AS DATE))
|
||||||
|
0 0 0
|
||||||
|
SELECT HOUR(CAST(NULL AS DATE)),
|
||||||
|
MINUTE(CAST(NULL AS DATE)),
|
||||||
|
SECOND(CAST(NULL AS DATE));
|
||||||
|
HOUR(CAST(NULL AS DATE)) MINUTE(CAST(NULL AS DATE)) SECOND(CAST(NULL AS DATE))
|
||||||
|
NULL NULL NULL
|
||||||
|
SELECT HOUR(NULL),
|
||||||
|
MINUTE(NULL),
|
||||||
|
SECOND(NULL);
|
||||||
|
HOUR(NULL) MINUTE(NULL) SECOND(NULL)
|
||||||
|
NULL NULL NULL
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
|
@ -811,6 +811,12 @@ quote(name)
|
|||||||
????????
|
????????
|
||||||
????????????????
|
????????????????
|
||||||
drop table bug20536;
|
drop table bug20536;
|
||||||
|
CREATE TABLE t1(a TEXT CHARSET ucs2 COLLATE ucs2_unicode_ci);
|
||||||
|
INSERT INTO t1 VALUES('abcd');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abcd' IN BOOLEAN MODE);
|
||||||
|
a
|
||||||
|
abcd
|
||||||
|
DROP TABLE t1;
|
||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
||||||
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
||||||
|
@ -31,7 +31,7 @@ create event e_55 on schedule at 10000101000000 do drop table t;
|
|||||||
ERROR HY000: Incorrect AT value: '10000101000000'
|
ERROR HY000: Incorrect AT value: '10000101000000'
|
||||||
create event e_55 on schedule at 20000101000000 do drop table t;
|
create event e_55 on schedule at 20000101000000 do drop table t;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1587 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
show events;
|
show events;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
create event e_55 on schedule at 20200101000000 starts 10000101000000 do drop table t;
|
create event e_55 on schedule at 20200101000000 starts 10000101000000 do drop table t;
|
||||||
@ -457,22 +457,22 @@ CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
|||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1587 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' DISABLE
|
ENDS '1999-01-02 00:00:00' DISABLE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1587 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DO
|
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1587 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DISABLE
|
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DISABLE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1587 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1588 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
@ -482,19 +482,19 @@ The following should succeed giving a warning.
|
|||||||
ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE;
|
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1543 Event execution time is in the past. Event has been disabled
|
Note 1544 Event execution time is in the past. Event has been disabled
|
||||||
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE
|
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1543 Event execution time is in the past. Event has been disabled
|
Note 1544 Event execution time is in the past. Event has been disabled
|
||||||
CREATE EVENT e5 ON SCHEDULE AT '1999-01-01 00:00:00'
|
CREATE EVENT e5 ON SCHEDULE AT '1999-01-01 00:00:00'
|
||||||
ON COMPLETION PRESERVE
|
ON COMPLETION PRESERVE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1543 Event execution time is in the past. Event has been disabled
|
Note 1544 Event execution time is in the past. Event has been disabled
|
||||||
The following should succeed without warnings.
|
The following should succeed without warnings.
|
||||||
ALTER EVENT e2 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00';
|
ALTER EVENT e2 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00';
|
||||||
ALTER EVENT e3 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
ALTER EVENT e3 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
@ -610,7 +610,6 @@ id ev_nm ev_cnt
|
|||||||
6 ev_sched_1823 6
|
6 ev_sched_1823 6
|
||||||
DROP TABLE event_log;
|
DROP TABLE event_log;
|
||||||
SET GLOBAL event_scheduler = OFF;
|
SET GLOBAL event_scheduler = OFF;
|
||||||
DROP DATABASE events_test;
|
|
||||||
SET GLOBAL event_scheduler= ON;
|
SET GLOBAL event_scheduler= ON;
|
||||||
CREATE EVENT bug28641 ON SCHEDULE AT '2038.01.18 03:00:00'
|
CREATE EVENT bug28641 ON SCHEDULE AT '2038.01.18 03:00:00'
|
||||||
DO BEGIN
|
DO BEGIN
|
||||||
@ -618,3 +617,105 @@ SELECT 1;
|
|||||||
END;|
|
END;|
|
||||||
SET GLOBAL event_scheduler= OFF;
|
SET GLOBAL event_scheduler= OFF;
|
||||||
DROP EVENT bug28641;
|
DROP EVENT bug28641;
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
#
|
||||||
|
# BUG#31111: --read-only crashes MySQL (events fail to load).
|
||||||
|
#
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
DROP USER mysqltest_u1@localhost;
|
||||||
|
DROP EVENT IF EXISTS e1;
|
||||||
|
DROP EVENT IF EXISTS e2;
|
||||||
|
|
||||||
|
GRANT EVENT ON *.* TO mysqltest_u1@localhost;
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connection: u1_con (mysqltest_u1@localhost/events_test).
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
|
||||||
|
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||||
|
|
||||||
|
ALTER EVENT e1 COMMENT 'comment';
|
||||||
|
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||||
|
|
||||||
|
DROP EVENT e1;
|
||||||
|
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connection: root_con (root@localhost/events_test).
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
|
||||||
|
|
||||||
|
ALTER EVENT e1 COMMENT 'comment';
|
||||||
|
|
||||||
|
DROP EVENT e1;
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 0;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connection: u1_con (mysqltest_u1@localhost/test).
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND DO SET @a = 1;
|
||||||
|
CREATE EVENT e2 ON SCHEDULE EVERY 1 SECOND DO SET @a = 1;
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
event_name,
|
||||||
|
last_executed IS NULL,
|
||||||
|
definer
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test';
|
||||||
|
event_name last_executed IS NULL definer
|
||||||
|
e1 1 mysqltest_u1@localhost
|
||||||
|
e2 1 mysqltest_u1@localhost
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connection: root_con (root@localhost/events_test).
|
||||||
|
#
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 1;
|
||||||
|
|
||||||
|
SET GLOBAL EVENT_SCHEDULER = ON;
|
||||||
|
|
||||||
|
# Waiting for the event scheduler to execute and drop event e1...
|
||||||
|
|
||||||
|
# Waiting for the event scheduler to execute and update event e2...
|
||||||
|
|
||||||
|
SET GLOBAL EVENT_SCHEDULER = OFF;
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
event_name,
|
||||||
|
last_executed IS NULL,
|
||||||
|
definer
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test';
|
||||||
|
event_name last_executed IS NULL definer
|
||||||
|
e2 0 mysqltest_u1@localhost
|
||||||
|
|
||||||
|
DROP EVENT e1;
|
||||||
|
ERROR HY000: Unknown event 'e1'
|
||||||
|
|
||||||
|
# Cleanup.
|
||||||
|
|
||||||
|
DROP EVENT e2;
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 0;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connection: default
|
||||||
|
#
|
||||||
|
|
||||||
|
DROP USER mysqltest_u1@localhost;
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
#
|
||||||
|
# End of BUG#31111.
|
||||||
|
#
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
DROP DATABASE events_test;
|
||||||
|
@ -63,7 +63,7 @@ begin work;
|
|||||||
insert into t1 (a) values ("OK: create event if not exists");
|
insert into t1 (a) values ("OK: create event if not exists");
|
||||||
create event if not exists e1 on schedule every 2 day do select 2;
|
create event if not exists e1 on schedule every 2 day do select 2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1536 Event 'e1' already exists
|
Note 1537 Event 'e1' already exists
|
||||||
rollback work;
|
rollback work;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
|
@ -253,6 +253,14 @@ drop user guest_usage@localhost;
|
|||||||
drop user guest_select@localhost;
|
drop user guest_select@localhost;
|
||||||
drop table federated.t1;
|
drop table federated.t1;
|
||||||
drop server 's1';
|
drop server 's1';
|
||||||
|
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||||
|
alter server 's1' options
|
||||||
|
(host 'localhost', database '', user '',
|
||||||
|
password '', socket '', owner '', port 3306);
|
||||||
|
alter server 's1' options
|
||||||
|
(host 'localhost', database 'database1', user '',
|
||||||
|
password '', socket '', owner '', port 3306);
|
||||||
|
drop server 's1';
|
||||||
# End of 5.1 tests
|
# End of 5.1 tests
|
||||||
use test;
|
use test;
|
||||||
create procedure p1 ()
|
create procedure p1 ()
|
||||||
@ -262,7 +270,7 @@ DECLARE e INT DEFAULT 0;
|
|||||||
DECLARE i INT;
|
DECLARE i INT;
|
||||||
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET e = e + 1;
|
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET e = e + 1;
|
||||||
SET i = sleep(5);
|
SET i = sleep(5);
|
||||||
WHILE v < 20000 do
|
WHILE v < 10000 do
|
||||||
CREATE SERVER s
|
CREATE SERVER s
|
||||||
FOREIGN DATA WRAPPER mysql
|
FOREIGN DATA WRAPPER mysql
|
||||||
OPTIONS (USER 'Remote', HOST '192.168.1.106', DATABASE 'test');
|
OPTIONS (USER 'Remote', HOST '192.168.1.106', DATABASE 'test');
|
||||||
|
@ -476,6 +476,12 @@ ALTER TABLE t1 DISABLE KEYS;
|
|||||||
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
||||||
ERROR HY000: Can't find FULLTEXT index matching the column list
|
ERROR HY000: Can't find FULLTEXT index matching the column list
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1(a TEXT);
|
||||||
|
INSERT INTO t1 VALUES(' aaaaa aaaa');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('"aaaa"' IN BOOLEAN MODE);
|
||||||
|
a
|
||||||
|
aaaaa aaaa
|
||||||
|
DROP TABLE t1;
|
||||||
CREATE TABLE t1(a VARCHAR(20), FULLTEXT(a));
|
CREATE TABLE t1(a VARCHAR(20), FULLTEXT(a));
|
||||||
INSERT INTO t1 VALUES('Offside'),('City Of God');
|
INSERT INTO t1 VALUES('Offside'),('City Of God');
|
||||||
SELECT a FROM t1 WHERE MATCH a AGAINST ('+city of*' IN BOOLEAN MODE);
|
SELECT a FROM t1 WHERE MATCH a AGAINST ('+city of*' IN BOOLEAN MODE);
|
||||||
|
@ -867,4 +867,13 @@ select group_concat(distinct a, c order by a desc, c desc) from t1;
|
|||||||
group_concat(distinct a, c order by a desc, c desc)
|
group_concat(distinct a, c order by a desc, c desc)
|
||||||
31,11,10,01,00
|
31,11,10,01,00
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
create table t1 (f1 char(20));
|
||||||
|
insert into t1 values (''),('');
|
||||||
|
select group_concat(distinct f1) from t1;
|
||||||
|
group_concat(distinct f1)
|
||||||
|
|
||||||
|
select group_concat(f1) from t1;
|
||||||
|
group_concat(f1)
|
||||||
|
,
|
||||||
|
drop table t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
|
@ -1378,4 +1378,24 @@ SELECT 1 FROM t1 GROUP BY (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) );
|
|||||||
1
|
1
|
||||||
1
|
1
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a int, b date NOT NULL, KEY k1 (a,b));
|
||||||
|
SELECT MIN(b) FROM t1 WHERE a=1 AND b>'2007-08-01';
|
||||||
|
MIN(b)
|
||||||
|
NULL
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a INT);
|
||||||
|
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
||||||
|
SET SQL_MODE=ONLY_FULL_GROUP_BY;
|
||||||
|
SELECT a FROM t1 HAVING COUNT(*)>2;
|
||||||
|
ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
|
||||||
|
SELECT COUNT(*), a FROM t1;
|
||||||
|
ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
|
||||||
|
SET SQL_MODE=DEFAULT;
|
||||||
|
SELECT a FROM t1 HAVING COUNT(*)>2;
|
||||||
|
a
|
||||||
|
1
|
||||||
|
SELECT COUNT(*), a FROM t1;
|
||||||
|
COUNT(*) a
|
||||||
|
4 1
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
|
@ -722,9 +722,9 @@ Warning 1265 Data truncated for column 'format(130,10)' at row 1
|
|||||||
show create table t1;
|
show create table t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t1 CREATE TABLE `t1` (
|
t1 CREATE TABLE `t1` (
|
||||||
`bin(130)` varchar(64) NOT NULL DEFAULT '',
|
`bin(130)` varchar(64) DEFAULT NULL,
|
||||||
`oct(130)` varchar(64) NOT NULL DEFAULT '',
|
`oct(130)` varchar(64) DEFAULT NULL,
|
||||||
`conv(130,16,10)` varchar(64) NOT NULL DEFAULT '',
|
`conv(130,16,10)` varchar(64) DEFAULT NULL,
|
||||||
`hex(130)` varchar(6) NOT NULL DEFAULT '',
|
`hex(130)` varchar(6) NOT NULL DEFAULT '',
|
||||||
`char(130)` varbinary(4) NOT NULL DEFAULT '',
|
`char(130)` varbinary(4) NOT NULL DEFAULT '',
|
||||||
`format(130,10)` varchar(4) NOT NULL DEFAULT '',
|
`format(130,10)` varchar(4) NOT NULL DEFAULT '',
|
||||||
@ -1315,6 +1315,18 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
|||||||
1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 const row not found
|
1 SIMPLE t1 system NULL NULL NULL NULL 0 0.00 const row not found
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1003 select decode('',_latin1'zxcv') AS `enc` from `test`.`t1`
|
Note 1003 select decode('',_latin1'zxcv') AS `enc` from `test`.`t1`
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a bigint not null)engine=myisam;
|
||||||
|
insert into t1 set a = 1024*1024*1024*4;
|
||||||
|
delete from t1 order by (inet_ntoa(a)) desc limit 10;
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(36) not null)engine=myisam;
|
||||||
|
insert ignore into t1 set a = ' ';
|
||||||
|
insert ignore into t1 set a = ' ';
|
||||||
|
select * from t1 order by (oct(a));
|
||||||
|
a
|
||||||
|
|
||||||
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
create table t1 (d decimal default null);
|
create table t1 (d decimal default null);
|
||||||
|
@ -529,7 +529,7 @@ Db char(64) NO PRI
|
|||||||
User char(16) NO PRI
|
User char(16) NO PRI
|
||||||
Table_name char(64) NO PRI
|
Table_name char(64) NO PRI
|
||||||
Grantor char(77) NO MUL
|
Grantor char(77) NO MUL
|
||||||
Timestamp timestamp NO CURRENT_TIMESTAMP
|
Timestamp timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') NO
|
Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') NO
|
||||||
Column_priv set('Select','Insert','Update','References') NO
|
Column_priv set('Select','Insert','Update','References') NO
|
||||||
use test;
|
use test;
|
||||||
|
@ -1064,6 +1064,71 @@ select t1.f1,t.* from t1, t1 t group by 1;
|
|||||||
ERROR 42000: 'test.t.f1' isn't in GROUP BY
|
ERROR 42000: 'test.t.f1' isn't in GROUP BY
|
||||||
drop table t1;
|
drop table t1;
|
||||||
SET SQL_MODE = '';
|
SET SQL_MODE = '';
|
||||||
|
CREATE TABLE t1(
|
||||||
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
c1 INT NOT NULL,
|
||||||
|
c2 INT NOT NULL,
|
||||||
|
UNIQUE KEY (c2,c1));
|
||||||
|
INSERT INTO t1(c1,c2) VALUES (5,1), (4,1), (3,5), (2,3), (1,3);
|
||||||
|
SELECT * FROM t1 ORDER BY c1;
|
||||||
|
id c1 c2
|
||||||
|
5 1 3
|
||||||
|
4 2 3
|
||||||
|
3 3 5
|
||||||
|
2 4 1
|
||||||
|
1 5 1
|
||||||
|
SELECT * FROM t1 GROUP BY id ORDER BY c1;
|
||||||
|
id c1 c2
|
||||||
|
5 1 3
|
||||||
|
4 2 3
|
||||||
|
3 3 5
|
||||||
|
2 4 1
|
||||||
|
1 5 1
|
||||||
|
SELECT * FROM t1 GROUP BY id ORDER BY id DESC;
|
||||||
|
id c1 c2
|
||||||
|
5 1 3
|
||||||
|
4 2 3
|
||||||
|
3 3 5
|
||||||
|
2 4 1
|
||||||
|
1 5 1
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ,c1, id ORDER BY c2, c1;
|
||||||
|
id c1 c2
|
||||||
|
2 4 1
|
||||||
|
1 5 1
|
||||||
|
5 1 3
|
||||||
|
4 2 3
|
||||||
|
3 3 5
|
||||||
|
SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1;
|
||||||
|
id c1 c2
|
||||||
|
3 3 5
|
||||||
|
5 1 3
|
||||||
|
4 2 3
|
||||||
|
2 4 1
|
||||||
|
1 5 1
|
||||||
|
SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1 DESC;
|
||||||
|
id c1 c2
|
||||||
|
3 3 5
|
||||||
|
4 2 3
|
||||||
|
5 1 3
|
||||||
|
1 5 1
|
||||||
|
2 4 1
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2, c1;
|
||||||
|
id c1 c2
|
||||||
|
1 5 1
|
||||||
|
4 2 3
|
||||||
|
3 3 5
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1;
|
||||||
|
id c1 c2
|
||||||
|
3 3 5
|
||||||
|
4 2 3
|
||||||
|
1 5 1
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1 DESC;
|
||||||
|
id c1 c2
|
||||||
|
3 3 5
|
||||||
|
4 2 3
|
||||||
|
1 5 1
|
||||||
|
DROP TABLE t1;
|
||||||
|
End of 5.0 tests
|
||||||
CREATE TABLE t1 (a INT, b INT,
|
CREATE TABLE t1 (a INT, b INT,
|
||||||
PRIMARY KEY (a),
|
PRIMARY KEY (a),
|
||||||
KEY i2(a,b));
|
KEY i2(a,b));
|
||||||
|
@ -2299,8 +2299,7 @@ Handler_read_next 0
|
|||||||
FLUSH STATUS;
|
FLUSH STATUS;
|
||||||
DELETE FROM t3 WHERE (SELECT (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) x
|
DELETE FROM t3 WHERE (SELECT (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) x
|
||||||
FROM t1) > 10000;
|
FROM t1) > 10000;
|
||||||
Warnings:
|
ERROR 21000: Subquery returns more than 1 row
|
||||||
Error 1242 Subquery returns more than 1 row
|
|
||||||
SHOW STATUS LIKE 'handler_read__e%';
|
SHOW STATUS LIKE 'handler_read__e%';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Handler_read_key 8
|
Handler_read_key 8
|
||||||
|
@ -575,3 +575,65 @@ ERROR 42S02: Table 'test.t1' doesn't exist
|
|||||||
handler t1 close;
|
handler t1 close;
|
||||||
handler t2 close;
|
handler t2 close;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
|
drop table if exists t1;
|
||||||
|
create temporary table t1 (a int, b char(1), key a(a), key b(a,b));
|
||||||
|
insert into t1 values (0,"a"),(1,"b"),(2,"c"),(3,"d"),(4,"e"),
|
||||||
|
(5,"f"),(6,"g"),(7,"h"),(8,"i"),(9,"j");
|
||||||
|
select a,b from t1;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
1 b
|
||||||
|
2 c
|
||||||
|
3 d
|
||||||
|
4 e
|
||||||
|
5 f
|
||||||
|
6 g
|
||||||
|
7 h
|
||||||
|
8 i
|
||||||
|
9 j
|
||||||
|
handler t1 open as a1;
|
||||||
|
handler a1 read a first;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a1 read a next;
|
||||||
|
a b
|
||||||
|
1 b
|
||||||
|
handler a1 read a next;
|
||||||
|
a b
|
||||||
|
2 c
|
||||||
|
select a,b from t1;
|
||||||
|
ERROR HY000: Can't reopen table: 'a1'
|
||||||
|
handler a1 read a prev;
|
||||||
|
a b
|
||||||
|
1 b
|
||||||
|
handler a1 read a prev;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a1 read a=(6) where b="g";
|
||||||
|
a b
|
||||||
|
6 g
|
||||||
|
handler a1 close;
|
||||||
|
select a,b from t1;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
1 b
|
||||||
|
2 c
|
||||||
|
3 d
|
||||||
|
4 e
|
||||||
|
5 f
|
||||||
|
6 g
|
||||||
|
7 h
|
||||||
|
8 i
|
||||||
|
9 j
|
||||||
|
handler t1 open as a2;
|
||||||
|
handler a2 read a first;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a2 read a last;
|
||||||
|
a b
|
||||||
|
9 j
|
||||||
|
handler a2 read a prev;
|
||||||
|
a b
|
||||||
|
8 i
|
||||||
|
handler a2 close;
|
||||||
|
drop table t1;
|
||||||
|
@ -575,3 +575,65 @@ ERROR 42S02: Table 'test.t1' doesn't exist
|
|||||||
handler t1 close;
|
handler t1 close;
|
||||||
handler t2 close;
|
handler t2 close;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
|
drop table if exists t1;
|
||||||
|
create temporary table t1 (a int, b char(1), key a(a), key b(a,b));
|
||||||
|
insert into t1 values (0,"a"),(1,"b"),(2,"c"),(3,"d"),(4,"e"),
|
||||||
|
(5,"f"),(6,"g"),(7,"h"),(8,"i"),(9,"j");
|
||||||
|
select a,b from t1;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
1 b
|
||||||
|
2 c
|
||||||
|
3 d
|
||||||
|
4 e
|
||||||
|
5 f
|
||||||
|
6 g
|
||||||
|
7 h
|
||||||
|
8 i
|
||||||
|
9 j
|
||||||
|
handler t1 open as a1;
|
||||||
|
handler a1 read a first;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a1 read a next;
|
||||||
|
a b
|
||||||
|
1 b
|
||||||
|
handler a1 read a next;
|
||||||
|
a b
|
||||||
|
2 c
|
||||||
|
select a,b from t1;
|
||||||
|
ERROR HY000: Can't reopen table: 'a1'
|
||||||
|
handler a1 read a prev;
|
||||||
|
a b
|
||||||
|
1 b
|
||||||
|
handler a1 read a prev;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a1 read a=(6) where b="g";
|
||||||
|
a b
|
||||||
|
6 g
|
||||||
|
handler a1 close;
|
||||||
|
select a,b from t1;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
1 b
|
||||||
|
2 c
|
||||||
|
3 d
|
||||||
|
4 e
|
||||||
|
5 f
|
||||||
|
6 g
|
||||||
|
7 h
|
||||||
|
8 i
|
||||||
|
9 j
|
||||||
|
handler t1 open as a2;
|
||||||
|
handler a2 read a first;
|
||||||
|
a b
|
||||||
|
0 a
|
||||||
|
handler a2 read a last;
|
||||||
|
a b
|
||||||
|
9 j
|
||||||
|
handler a2 read a prev;
|
||||||
|
a b
|
||||||
|
8 i
|
||||||
|
handler a2 close;
|
||||||
|
drop table t1;
|
||||||
|
@ -1141,11 +1141,13 @@ DROP FUNCTION func2;
|
|||||||
select column_type, group_concat(table_schema, '.', table_name), count(*) as num
|
select column_type, group_concat(table_schema, '.', table_name), count(*) as num
|
||||||
from information_schema.columns where
|
from information_schema.columns where
|
||||||
table_schema='information_schema' and
|
table_schema='information_schema' and
|
||||||
(column_type = 'varchar(7)' or column_type = 'varchar(20)')
|
(column_type = 'varchar(7)' or column_type = 'varchar(20)'
|
||||||
|
or column_type = 'varchar(27)')
|
||||||
group by column_type order by num;
|
group by column_type order by num;
|
||||||
column_type group_concat(table_schema, '.', table_name) num
|
column_type group_concat(table_schema, '.', table_name) num
|
||||||
|
varchar(27) information_schema.COLUMNS 1
|
||||||
varchar(7) information_schema.ROUTINES,information_schema.VIEWS 2
|
varchar(7) information_schema.ROUTINES,information_schema.VIEWS 2
|
||||||
varchar(20) information_schema.COLUMNS,information_schema.FILES,information_schema.FILES,information_schema.PLUGINS,information_schema.PLUGINS,information_schema.PLUGINS 6
|
varchar(20) information_schema.FILES,information_schema.FILES,information_schema.PLUGINS,information_schema.PLUGINS,information_schema.PLUGINS 5
|
||||||
create table t1(f1 char(1) not null, f2 char(9) not null)
|
create table t1(f1 char(1) not null, f2 char(9) not null)
|
||||||
default character set utf8;
|
default character set utf8;
|
||||||
select CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH from
|
select CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH from
|
||||||
@ -1604,4 +1606,9 @@ select * from `information_schema`.`VIEWS` where `TABLE_SCHEMA` = NULL;
|
|||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
select * from `information_schema`.`VIEWS` where `TABLE_NAME` = NULL;
|
select * from `information_schema`.`VIEWS` where `TABLE_NAME` = NULL;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
|
explain extended select 1 from information_schema.tables;
|
||||||
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||||
|
1 SIMPLE tables ALL NULL NULL NULL NULL NULL NULL Skip_open_table; Scanned all databases
|
||||||
|
Warnings:
|
||||||
|
Note 1003 select 1 AS `1` from `information_schema`.`tables`
|
||||||
End of 5.1 tests.
|
End of 5.1 tests.
|
||||||
|
@ -141,7 +141,7 @@ Warnings:
|
|||||||
Warning 1356 View 'testdb_1.v7' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
|
Warning 1356 View 'testdb_1.v7' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
|
||||||
show fields from testdb_1.v7;
|
show fields from testdb_1.v7;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f1 null YES NULL
|
f1 char(4) YES NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1449 There is no 'no_such_user'@'no_such_host' registered
|
Note 1449 There is no 'no_such_user'@'no_such_host' registered
|
||||||
create table t3 (f1 char(4), f2 char(4));
|
create table t3 (f1 char(4), f2 char(4));
|
||||||
@ -161,7 +161,7 @@ View Create View character_set_client collation_connection
|
|||||||
v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v6` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v6` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
||||||
show fields from testdb_1.v7;
|
show fields from testdb_1.v7;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f1 null YES NULL
|
f1 char(4) YES NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1449 There is no 'no_such_user'@'no_such_host' registered
|
Note 1449 There is no 'no_such_user'@'no_such_host' registered
|
||||||
show create view testdb_1.v7;
|
show create view testdb_1.v7;
|
||||||
@ -189,7 +189,7 @@ show create view v4;
|
|||||||
ERROR HY000: EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
|
ERROR HY000: EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
|
||||||
show fields from v4;
|
show fields from v4;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f1 null YES NULL
|
f1 char(4) YES NULL
|
||||||
f2 char(4) YES NULL
|
f2 char(4) YES NULL
|
||||||
show fields from v2;
|
show fields from v2;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
|
@ -1289,6 +1289,40 @@ a b
|
|||||||
2 2
|
2 2
|
||||||
3 2
|
3 2
|
||||||
1 1
|
1 1
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#27610: ALTER TABLE ROW_FORMAT=... does not rebuild the table.
|
||||||
|
#
|
||||||
|
|
||||||
|
# - prepare;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
|
||||||
|
CREATE TABLE t1(c INT)
|
||||||
|
ENGINE = InnoDB
|
||||||
|
ROW_FORMAT = COMPACT;
|
||||||
|
|
||||||
|
# - initial check;
|
||||||
|
|
||||||
|
SELECT table_schema, table_name, row_format
|
||||||
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
|
WHERE table_schema = DATABASE() AND table_name = 't1';
|
||||||
|
table_schema table_name row_format
|
||||||
|
test t1 Compact
|
||||||
|
|
||||||
|
# - change ROW_FORMAT and check;
|
||||||
|
|
||||||
|
ALTER TABLE t1 ROW_FORMAT = REDUNDANT;
|
||||||
|
|
||||||
|
SELECT table_schema, table_name, row_format
|
||||||
|
FROM INFORMATION_SCHEMA.TABLES
|
||||||
|
WHERE table_schema = DATABASE() AND table_name = 't1';
|
||||||
|
table_schema table_name row_format
|
||||||
|
test t1 Redundant
|
||||||
|
|
||||||
|
# - that's it, cleanup.
|
||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
CREATE TABLE `t2` (
|
CREATE TABLE `t2` (
|
||||||
@ -1428,6 +1462,7 @@ SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|||||||
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(256))
|
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(256))
|
||||||
ENGINE = InnoDB;
|
ENGINE = InnoDB;
|
||||||
INSERT INTO t1 VALUES (1,2);
|
INSERT INTO t1 VALUES (1,2);
|
||||||
|
# 1. test for locking:
|
||||||
BEGIN;
|
BEGIN;
|
||||||
UPDATE t1 SET b = 12 WHERE a = 1;
|
UPDATE t1 SET b = 12 WHERE a = 1;
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
|
@ -530,3 +530,32 @@ ORDER BY c.b, c.d
|
|||||||
a b c d e f g h i j a b c d
|
a b c d e f g h i j a b c d
|
||||||
2 2 1 2004-11-30 12:00:00 1 0 0 0 0 0 2 3388000 -553000 NULL
|
2 2 1 2004-11-30 12:00:00 1 0 0 0 0 0 2 3388000 -553000 NULL
|
||||||
DROP TABLE t1, t2;
|
DROP TABLE t1, t2;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
CREATE TABLE t1 (a INT PRIMARY KEY AUTO_INCREMENT);
|
||||||
|
INSERT INTO t1 VALUES (), (), ();
|
||||||
|
SELECT 1 AS c1
|
||||||
|
FROM t1
|
||||||
|
ORDER BY (
|
||||||
|
SELECT 1 AS c2
|
||||||
|
FROM t1
|
||||||
|
GROUP BY GREATEST(LAST_INSERT_ID(), t1.a) ASC
|
||||||
|
LIMIT 1);
|
||||||
|
c1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a INT, b INT, INDEX (a,b));
|
||||||
|
INSERT INTO t1 (a, b)
|
||||||
|
VALUES
|
||||||
|
(1,1), (1,2), (1,3), (1,4), (1,5),
|
||||||
|
(2,2), (2,3), (2,1), (3,1), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6);
|
||||||
|
EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE
|
||||||
|
(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
|
||||||
|
2 SUBQUERY t1 range NULL a 5 NULL 8 Using index for group-by
|
||||||
|
SELECT 1 as RES FROM t1 AS t1_outer WHERE
|
||||||
|
(SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
|
||||||
|
RES
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -175,3 +175,66 @@ SET GLOBAL slow_query_log = ON;
|
|||||||
SET GLOBAL READ_ONLY = OFF;
|
SET GLOBAL READ_ONLY = OFF;
|
||||||
SET GLOBAL general_log = @old_general_log_state;
|
SET GLOBAL general_log = @old_general_log_state;
|
||||||
SET GLOBAL slow_query_log = @old_slow_log_state;
|
SET GLOBAL slow_query_log = @old_slow_log_state;
|
||||||
|
SET @old_general_log_state = @@global.general_log;
|
||||||
|
SET @old_slow_log_state = @@global.slow_query_log;
|
||||||
|
SHOW VARIABLES LIKE 'general_log';
|
||||||
|
Variable_name Value
|
||||||
|
general_log ON
|
||||||
|
SHOW VARIABLES LIKE 'log';
|
||||||
|
Variable_name Value
|
||||||
|
log ON
|
||||||
|
SELECT @@general_log, @@log;
|
||||||
|
@@general_log @@log
|
||||||
|
1 1
|
||||||
|
SET GLOBAL log = 0;
|
||||||
|
SHOW VARIABLES LIKE 'general_log';
|
||||||
|
Variable_name Value
|
||||||
|
general_log OFF
|
||||||
|
SHOW VARIABLES LIKE 'log';
|
||||||
|
Variable_name Value
|
||||||
|
log OFF
|
||||||
|
SELECT @@general_log, @@log;
|
||||||
|
@@general_log @@log
|
||||||
|
0 0
|
||||||
|
SET GLOBAL general_log = 1;
|
||||||
|
SHOW VARIABLES LIKE 'general_log';
|
||||||
|
Variable_name Value
|
||||||
|
general_log ON
|
||||||
|
SHOW VARIABLES LIKE 'log';
|
||||||
|
Variable_name Value
|
||||||
|
log ON
|
||||||
|
SELECT @@general_log, @@log;
|
||||||
|
@@general_log @@log
|
||||||
|
1 1
|
||||||
|
SHOW VARIABLES LIKE 'slow_query_log';
|
||||||
|
Variable_name Value
|
||||||
|
slow_query_log OFF
|
||||||
|
SHOW VARIABLES LIKE 'log_slow_queries';
|
||||||
|
Variable_name Value
|
||||||
|
log_slow_queries OFF
|
||||||
|
SELECT @@slow_query_log, @@log_slow_queries;
|
||||||
|
@@slow_query_log @@log_slow_queries
|
||||||
|
0 0
|
||||||
|
SET GLOBAL log_slow_queries = 0;
|
||||||
|
SHOW VARIABLES LIKE 'slow_query_log';
|
||||||
|
Variable_name Value
|
||||||
|
slow_query_log OFF
|
||||||
|
SHOW VARIABLES LIKE 'log_slow_queries';
|
||||||
|
Variable_name Value
|
||||||
|
log_slow_queries OFF
|
||||||
|
SELECT @@slow_query_log, @@log_slow_queries;
|
||||||
|
@@slow_query_log @@log_slow_queries
|
||||||
|
0 0
|
||||||
|
SET GLOBAL slow_query_log = 1;
|
||||||
|
SHOW VARIABLES LIKE 'slow_query_log';
|
||||||
|
Variable_name Value
|
||||||
|
slow_query_log ON
|
||||||
|
SHOW VARIABLES LIKE 'log_slow_queries';
|
||||||
|
Variable_name Value
|
||||||
|
log_slow_queries ON
|
||||||
|
SELECT @@slow_query_log, @@log_slow_queries;
|
||||||
|
@@slow_query_log @@log_slow_queries
|
||||||
|
1 1
|
||||||
|
SET GLOBAL general_log = @old_general_log_state;
|
||||||
|
SET GLOBAL slow_query_log = @old_slow_log_state;
|
||||||
|
End of 5.1 tests
|
||||||
|
@ -50,7 +50,7 @@ general_log CREATE TABLE `general_log` (
|
|||||||
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
|
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
|
||||||
show fields from mysql.general_log;
|
show fields from mysql.general_log;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
event_time timestamp NO CURRENT_TIMESTAMP
|
event_time timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
user_host mediumtext NO NULL
|
user_host mediumtext NO NULL
|
||||||
thread_id int(11) NO NULL
|
thread_id int(11) NO NULL
|
||||||
server_id int(11) NO NULL
|
server_id int(11) NO NULL
|
||||||
@ -73,7 +73,7 @@ slow_log CREATE TABLE `slow_log` (
|
|||||||
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
|
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
|
||||||
show fields from mysql.slow_log;
|
show fields from mysql.slow_log;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
start_time timestamp NO CURRENT_TIMESTAMP
|
start_time timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
user_host mediumtext NO NULL
|
user_host mediumtext NO NULL
|
||||||
query_time time NO NULL
|
query_time time NO NULL
|
||||||
lock_time time NO NULL
|
lock_time time NO NULL
|
||||||
@ -820,3 +820,31 @@ Execute select '000 001 002 003 004 005 006 007 008 009010 011 012 013 014 015 0
|
|||||||
Query set global general_log = off
|
Query set global general_log = off
|
||||||
deallocate prepare long_query;
|
deallocate prepare long_query;
|
||||||
set global general_log = @old_general_log_state;
|
set global general_log = @old_general_log_state;
|
||||||
|
SET @old_slow_log_state = @@global.slow_query_log;
|
||||||
|
SET SESSION long_query_time = 0;
|
||||||
|
SET GLOBAL slow_query_log = ON;
|
||||||
|
FLUSH LOGS;
|
||||||
|
TRUNCATE TABLE mysql.slow_log;
|
||||||
|
CREATE TABLE t1 (f1 SERIAL,f2 INT, f3 INT, PRIMARY KEY(f1), KEY(f2));
|
||||||
|
INSERT INTO t1 VALUES (1,1,1);
|
||||||
|
INSERT INTO t1 VALUES (2,2,2);
|
||||||
|
INSERT INTO t1 VALUES (3,3,3);
|
||||||
|
INSERT INTO t1 VALUES (4,4,4);
|
||||||
|
SELECT SQL_NO_CACHE 'Bug#31700 - SCAN',f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f3=4;
|
||||||
|
Bug#31700 - SCAN f1 f2 f3 SLEEP(1.1)
|
||||||
|
Bug#31700 - SCAN 4 4 4 0
|
||||||
|
SELECT SQL_NO_CACHE 'Bug#31700 - KEY', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f2=3;
|
||||||
|
Bug#31700 - KEY f1 f2 f3 SLEEP(1.1)
|
||||||
|
Bug#31700 - KEY 3 3 3 0
|
||||||
|
SELECT SQL_NO_CACHE 'Bug#31700 - PK', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f1=2;
|
||||||
|
Bug#31700 - PK f1 f2 f3 SLEEP(1.1)
|
||||||
|
Bug#31700 - PK 2 2 2 0
|
||||||
|
SELECT start_time, rows_examined, rows_sent, sql_text FROM mysql.slow_log WHERE sql_text LIKE '%Bug#31700%' ORDER BY start_time;
|
||||||
|
start_time rows_examined rows_sent sql_text
|
||||||
|
TIMESTAMP 4 1 SELECT SQL_NO_CACHE 'Bug#31700 - SCAN',f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f3=4
|
||||||
|
TIMESTAMP 1 1 SELECT SQL_NO_CACHE 'Bug#31700 - KEY', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f2=3
|
||||||
|
TIMESTAMP 1 1 SELECT SQL_NO_CACHE 'Bug#31700 - PK', f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f1=2
|
||||||
|
DROP TABLE t1;
|
||||||
|
TRUNCATE TABLE mysql.slow_log;
|
||||||
|
SET GLOBAL slow_query_log = @old_slow_log_state;
|
||||||
|
SET SESSION long_query_time =@old_long_query_time;
|
||||||
|
@ -119,7 +119,7 @@ create table t1Aa (col1 int);
|
|||||||
create view v1Aa as select col1 from t1Aa as AaA;
|
create view v1Aa as select col1 from t1Aa as AaA;
|
||||||
show create view v1AA;
|
show create view v1AA;
|
||||||
View Create View character_set_client collation_connection
|
View Create View character_set_client collation_connection
|
||||||
v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `AaA` latin1 latin1_swedish_ci
|
v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `aaa` latin1 latin1_swedish_ci
|
||||||
drop view v1AA;
|
drop view v1AA;
|
||||||
select Aaa.col1 from t1Aa as AaA;
|
select Aaa.col1 from t1Aa as AaA;
|
||||||
col1
|
col1
|
||||||
@ -128,6 +128,23 @@ drop view v1AA;
|
|||||||
create view v1Aa as select AaA.col1 from t1Aa as AaA;
|
create view v1Aa as select AaA.col1 from t1Aa as AaA;
|
||||||
show create view v1AA;
|
show create view v1AA;
|
||||||
View Create View character_set_client collation_connection
|
View Create View character_set_client collation_connection
|
||||||
v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `AaA` latin1 latin1_swedish_ci
|
v1aa CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1aa` AS select `aaa`.`col1` AS `col1` from `t1aa` `aaa` latin1 latin1_swedish_ci
|
||||||
drop view v1AA;
|
drop view v1AA;
|
||||||
drop table t1Aa;
|
drop table t1Aa;
|
||||||
|
CREATE TABLE t1 (a int, b int);
|
||||||
|
select X.a from t1 AS X group by X.b having (X.a = 1);
|
||||||
|
a
|
||||||
|
select X.a from t1 AS X group by X.b having (x.a = 1);
|
||||||
|
a
|
||||||
|
select X.a from t1 AS X group by X.b having (x.b = 1);
|
||||||
|
a
|
||||||
|
CREATE OR REPLACE VIEW v1 AS
|
||||||
|
select X.a from t1 AS X group by X.b having (X.a = 1);
|
||||||
|
SHOW CREATE VIEW v1;
|
||||||
|
View Create View character_set_client collation_connection
|
||||||
|
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `x`.`a` AS `a` from `t1` `x` group by `x`.`b` having (`x`.`a` = 1) latin1 latin1_swedish_ci
|
||||||
|
SELECT * FROM v1;
|
||||||
|
a
|
||||||
|
DROP VIEW v1;
|
||||||
|
DROP TABLE t1;
|
||||||
|
End of 5.0 tests.
|
||||||
|
@ -21,7 +21,7 @@ def test t1 t1 g g 5 4 0 Y 32768 3 63
|
|||||||
def test t1 t1 h h 246 7 0 Y 0 4 63
|
def test t1 t1 h h 246 7 0 Y 0 4 63
|
||||||
def test t1 t1 i i 13 4 0 Y 32864 0 63
|
def test t1 t1 i i 13 4 0 Y 32864 0 63
|
||||||
def test t1 t1 j j 10 10 0 Y 128 0 63
|
def test t1 t1 j j 10 10 0 Y 128 0 63
|
||||||
def test t1 t1 k k 7 19 0 N 1249 0 63
|
def test t1 t1 k k 7 19 0 N 9441 0 63
|
||||||
def test t1 t1 l l 12 19 0 Y 128 0 63
|
def test t1 t1 l l 12 19 0 Y 128 0 63
|
||||||
def test t1 t1 m m 254 1 0 Y 256 0 8
|
def test t1 t1 m m 254 1 0 Y 256 0 8
|
||||||
def test t1 t1 n n 254 3 0 Y 2048 0 8
|
def test t1 t1 n n 254 3 0 Y 2048 0 8
|
||||||
|
@ -1794,6 +1794,31 @@ SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1;
|
|||||||
a
|
a
|
||||||
1
|
1
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (c1 INT, c2 INT, UNIQUE INDEX (c1), INDEX (c2)) ENGINE=MYISAM;
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 0 # # # 1024 # # # # # # #
|
||||||
|
INSERT INTO t1 VALUES (1,1);
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
|
||||||
|
ALTER TABLE t1 DISABLE KEYS;
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
|
||||||
|
ALTER TABLE t1 ENABLE KEYS;
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
|
||||||
|
ALTER TABLE t1 DISABLE KEYS;
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
|
||||||
|
ALTER TABLE t1 ENABLE KEYS;
|
||||||
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
|
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
create table t1 (a int not null, key `a` (a) key_block_size=1024);
|
create table t1 (a int not null, key `a` (a) key_block_size=1024);
|
||||||
show create table t1;
|
show create table t1;
|
||||||
|
62
mysql-test/r/mysql_comments.result
Normal file
62
mysql-test/r/mysql_comments.result
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
drop table if exists t1;
|
||||||
|
drop function if exists foofct;
|
||||||
|
drop procedure if exists empty;
|
||||||
|
drop procedure if exists foosp;
|
||||||
|
drop procedure if exists nicesp;
|
||||||
|
drop trigger if exists t1_empty;
|
||||||
|
drop trigger if exists t1_bi;
|
||||||
|
"Pass 1 : --disable-comments"
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
foofct("call 1")
|
||||||
|
call 1
|
||||||
|
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||||
|
foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n\n\n\nx latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
foofct("call 2")
|
||||||
|
call 2
|
||||||
|
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||||
|
foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n \n \n \n\n \n\n \n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
id data
|
||||||
|
foo 42
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n\n\n\n\n \n\n \n values ("foo", 42) latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n \n declare b int;\n declare c float;\n\n \n \n\n \nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
|
||||||
|
t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
|
||||||
|
t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n\n\n\n \n declare b int;\n declare c float;\n\n \n \n\n \n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
id data
|
||||||
|
trig 12
|
||||||
|
"Pass 2 : --enable-comments"
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
foofct("call 1")
|
||||||
|
call 1
|
||||||
|
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||||
|
foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n-- comment 1a\n# comment 1b\n/* comment 1c */\nx # after body, on same line latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
foofct("call 2")
|
||||||
|
call 2
|
||||||
|
Function sql_mode Create Function character_set_client collation_connection Database Collation
|
||||||
|
foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n -- comment 1a\n # comment 1b\n /*\n comment 1c\n */\n\n -- empty line below\n\n -- empty line above\n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
id data
|
||||||
|
foo 42
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n## These comments are part of the procedure body, and should be kept.\n# Comment 2a\n-- Comment 2b\n/* Comment 2c */\n -- empty line below\n\n -- empty line above\n values ("foo", 42) # comment 3, still part of the body latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
|
nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
|
||||||
|
t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation
|
||||||
|
t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n# comment 1a\n-- comment 1b\n/*\n comment 1c\n*/\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
id data
|
||||||
|
trig 12
|
||||||
|
End of 5.0 tests
|
@ -328,4 +328,27 @@ drop table t1;
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
flush logs;
|
flush logs;
|
||||||
|
BUG#31611: Security risk with BINLOG statement
|
||||||
|
SET BINLOG_FORMAT=ROW;
|
||||||
|
CREATE DATABASE mysqltest1;
|
||||||
|
CREATE USER untrusted@localhost;
|
||||||
|
GRANT SELECT ON mysqltest1.* TO untrusted@localhost;
|
||||||
|
SHOW GRANTS FOR untrusted@localhost;
|
||||||
|
Grants for untrusted@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'untrusted'@'localhost'
|
||||||
|
GRANT SELECT ON `mysqltest1`.* TO 'untrusted'@'localhost'
|
||||||
|
USE mysqltest1;
|
||||||
|
CREATE TABLE t1 (a INT, b CHAR(64));
|
||||||
|
flush logs;
|
||||||
|
INSERT INTO t1 VALUES (1,USER());
|
||||||
|
flush logs;
|
||||||
|
mysqlbinlog var/log/master-bin.000017 > var/tmp/bug31611.sql
|
||||||
|
mysql mysqltest1 -uuntrusted < var/tmp/bug31611.sql
|
||||||
|
INSERT INTO t1 VALUES (1,USER());
|
||||||
|
ERROR 42000: INSERT command denied to user 'untrusted'@'localhost' for table 't1'
|
||||||
|
SELECT * FROM t1;
|
||||||
|
a b
|
||||||
|
1 root@localhost
|
||||||
|
DROP DATABASE mysqltest1;
|
||||||
|
DROP USER untrusted@localhost;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@ -4212,5 +4212,24 @@ TRUNCATE mysql.event;
|
|||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
#
|
#
|
||||||
|
# Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
|
||||||
|
#
|
||||||
|
create database `test-database`;
|
||||||
|
use `test-database`;
|
||||||
|
create table test (a int);
|
||||||
|
DROP TABLE IF EXISTS `test`;
|
||||||
|
SET @saved_cs_client = @@character_set_client;
|
||||||
|
SET character_set_client = utf8;
|
||||||
|
CREATE TABLE `test` (
|
||||||
|
`a` int(11) DEFAULT NULL
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
|
SET character_set_client = @saved_cs_client;
|
||||||
|
LOCK TABLES `test` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `test` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `test` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
drop database `test-database`;
|
||||||
|
use test;
|
||||||
|
#
|
||||||
# End of 5.1 tests
|
# End of 5.1 tests
|
||||||
#
|
#
|
||||||
|
85
mysql-test/r/outfile_loaddata.result
Normal file
85
mysql-test/r/outfile_loaddata.result
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
DROP TABLE IF EXISTS t1, t2;
|
||||||
|
#
|
||||||
|
# Bug#31663 FIELDS TERMINATED BY special character
|
||||||
|
#
|
||||||
|
CREATE TABLE t1 (i1 int, i2 int, c1 VARCHAR(256), c2 VARCHAR(256));
|
||||||
|
INSERT INTO t1 VALUES (101, 202, '-r-', '=raker=');
|
||||||
|
# FIELDS TERMINATED BY 'raker', warning:
|
||||||
|
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY 'raker' FROM t1;
|
||||||
|
Warnings:
|
||||||
|
Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
|
||||||
|
SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
|
||||||
|
LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
|
||||||
|
101raker202raker-r-raker=raker=
|
||||||
|
|
||||||
|
CREATE TABLE t2 SELECT * FROM t1;
|
||||||
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY 'raker';
|
||||||
|
Warnings:
|
||||||
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
||||||
|
SELECT * FROM t2;
|
||||||
|
i1 i2 c1 c2
|
||||||
|
101 202 -r- =raker=
|
||||||
|
101 202 -r- =
|
||||||
|
DROP TABLE t2;
|
||||||
|
# Only numeric fields, FIELDS TERMINATED BY 'r', no warnings:
|
||||||
|
SELECT i1, i2 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY 'r' FROM t1;
|
||||||
|
SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
|
||||||
|
LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
|
||||||
|
101r202
|
||||||
|
|
||||||
|
CREATE TABLE t2 SELECT i1, i2 FROM t1;
|
||||||
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY 'r';
|
||||||
|
SELECT i1, i2 FROM t2;
|
||||||
|
i1 i2
|
||||||
|
101 202
|
||||||
|
101 202
|
||||||
|
DROP TABLE t2;
|
||||||
|
# FIELDS TERMINATED BY '0', warning:
|
||||||
|
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS TERMINATED BY '0' FROM t1;
|
||||||
|
Warnings:
|
||||||
|
Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
|
||||||
|
SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
|
||||||
|
LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
|
||||||
|
10102020-r-0=raker=
|
||||||
|
|
||||||
|
CREATE TABLE t2 SELECT * FROM t1;
|
||||||
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS TERMINATED BY '0';
|
||||||
|
Warnings:
|
||||||
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
||||||
|
SELECT * FROM t2;
|
||||||
|
i1 i2 c1 c2
|
||||||
|
101 202 -r- =raker=
|
||||||
|
1 1 2 2
|
||||||
|
DROP TABLE t2;
|
||||||
|
# FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0', warning:
|
||||||
|
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0' FROM t1;
|
||||||
|
Warnings:
|
||||||
|
Warning 1475 First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY
|
||||||
|
SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
|
||||||
|
LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
|
||||||
|
10102020"-r-"0"=raker="
|
||||||
|
|
||||||
|
CREATE TABLE t2 SELECT * FROM t1;
|
||||||
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0';
|
||||||
|
Warnings:
|
||||||
|
Warning 1262 Row 1 was truncated; it contained more data than there were input columns
|
||||||
|
SELECT * FROM t2;
|
||||||
|
i1 i2 c1 c2
|
||||||
|
101 202 -r- =raker=
|
||||||
|
1 1 2 2
|
||||||
|
DROP TABLE t2;
|
||||||
|
# Only string fields, FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0', no warnings:
|
||||||
|
SELECT c1, c2 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0' FROM t1;
|
||||||
|
SELECT LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt');
|
||||||
|
LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug31663.txt')
|
||||||
|
"-r-"0"=raker="
|
||||||
|
|
||||||
|
CREATE TABLE t2 SELECT c1, c2 FROM t1;
|
||||||
|
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug31663.txt' INTO TABLE t2 FIELDS OPTIONALLY ENCLOSED BY '"' TERMINATED BY '0';
|
||||||
|
SELECT c1, c2 FROM t2;
|
||||||
|
c1 c2
|
||||||
|
-r- =raker=
|
||||||
|
-r- =raker=
|
||||||
|
DROP TABLE t2;
|
||||||
|
DROP TABLE t1;
|
||||||
|
# End of 5.0 tests.
|
@ -1,4 +1,32 @@
|
|||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
d DATE NOT NULL
|
||||||
|
)
|
||||||
|
PARTITION BY RANGE( YEAR(d) ) (
|
||||||
|
PARTITION p0 VALUES LESS THAN (1960),
|
||||||
|
PARTITION p1 VALUES LESS THAN (1970),
|
||||||
|
PARTITION p2 VALUES LESS THAN (1980),
|
||||||
|
PARTITION p3 VALUES LESS THAN (1990)
|
||||||
|
);
|
||||||
|
ALTER TABLE t1 ADD PARTITION (
|
||||||
|
PARTITION `p5` VALUES LESS THAN (2010)
|
||||||
|
COMMENT 'APSTART \' APEND'
|
||||||
|
);
|
||||||
|
SELECT * FROM t1 LIMIT 1;
|
||||||
|
d
|
||||||
|
DROP TABLE t1;
|
||||||
|
create table t1 (id int auto_increment, s1 int, primary key (id));
|
||||||
|
insert into t1 values (null,1);
|
||||||
|
insert into t1 values (null,6);
|
||||||
|
select * from t1;
|
||||||
|
id s1
|
||||||
|
1 1
|
||||||
|
2 6
|
||||||
|
alter table t1 partition by range (id) (
|
||||||
|
partition p0 values less than (3),
|
||||||
|
partition p1 values less than maxvalue
|
||||||
|
);
|
||||||
|
drop table t1;
|
||||||
create table t1 (a int)
|
create table t1 (a int)
|
||||||
partition by key(a)
|
partition by key(a)
|
||||||
partitions 0.2+e1;
|
partitions 0.2+e1;
|
||||||
@ -687,7 +715,7 @@ partition by range (a)
|
|||||||
alter table t1 add partition (partition p1 values in (2));
|
alter table t1 add partition (partition p1 values in (2));
|
||||||
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
|
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
|
||||||
alter table t1 add partition (partition p1);
|
alter table t1 add partition (partition p1);
|
||||||
ERROR HY000: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
|
ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (a int)
|
create table t1 (a int)
|
||||||
partition by list (a)
|
partition by list (a)
|
||||||
@ -695,7 +723,7 @@ partition by list (a)
|
|||||||
alter table t1 add partition (partition p1 values less than (2));
|
alter table t1 add partition (partition p1 values less than (2));
|
||||||
ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
|
ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
|
||||||
alter table t1 add partition (partition p1);
|
alter table t1 add partition (partition p1);
|
||||||
ERROR HY000: LIST PARTITIONING requires definition of VALUES IN for each partition
|
ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (a int)
|
create table t1 (a int)
|
||||||
partition by hash (a)
|
partition by hash (a)
|
||||||
@ -1257,4 +1285,9 @@ t1 CREATE TABLE `t1` (
|
|||||||
`b` int(11) DEFAULT NULL
|
`b` int(11) DEFAULT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (b) (PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM, PARTITION p2 VALUES LESS THAN (20) ENGINE = MyISAM) */
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (b) (PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM, PARTITION p2 VALUES LESS THAN (20) ENGINE = MyISAM) */
|
||||||
drop table t1, t2;
|
drop table t1, t2;
|
||||||
|
create table t1
|
||||||
|
(s1 timestamp on update current_timestamp, s2 int)
|
||||||
|
partition by key(s1) partitions 3;
|
||||||
|
insert into t1 values (null,null);
|
||||||
|
drop table t1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
282
mysql-test/r/partition_datatype.result
Normal file
282
mysql-test/r/partition_datatype.result
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
drop table if exists t1;
|
||||||
|
create table t1 (a tinyint not null) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a smallint not null) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a mediumint not null) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a int not null) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a bigint not null) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a float not null) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a double not null) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
2.1
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a decimal not null) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
Warnings:
|
||||||
|
Note 1265 Data truncated for column 'a' at row 1
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a date not null) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01');
|
||||||
|
select * from t1 where a = '2001-01-01';
|
||||||
|
a
|
||||||
|
2001-01-01
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a datetime not null) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01 01:02:03');
|
||||||
|
select * from t1 where a = '2001-01-01 01:02:03';
|
||||||
|
a
|
||||||
|
2001-01-01 01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a timestamp not null) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01 01:02:03');
|
||||||
|
select * from t1 where a = '2001-01-01 01:02:03';
|
||||||
|
a
|
||||||
|
2001-01-01 01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a time not null) partition by key (a);
|
||||||
|
insert into t1 values ('01:02:03');
|
||||||
|
select * from t1 where a = '01:02:03';
|
||||||
|
a
|
||||||
|
01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a year not null) partition by key (a);
|
||||||
|
insert into t1 values ('2001');
|
||||||
|
select * from t1 where a = '2001';
|
||||||
|
a
|
||||||
|
2001
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(10) character set utf8 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(300) character set utf8 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(10) character set latin1 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(300) character set latin1 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(10) character set utf8 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(10) character set latin1 not null) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a enum('y','n') not null) partition by key (a);
|
||||||
|
insert into t1 values ('y');
|
||||||
|
select * from t1 where a = 'y';
|
||||||
|
a
|
||||||
|
y
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a set('y','n') not null) partition by key (a);
|
||||||
|
insert into t1 values ('y');
|
||||||
|
select * from t1 where a = 'y';
|
||||||
|
a
|
||||||
|
y
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a tinyint) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a smallint) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a mediumint) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a int) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a bigint) partition by key (a);
|
||||||
|
insert into t1 values (2);
|
||||||
|
select * from t1 where a = 2;
|
||||||
|
a
|
||||||
|
2
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a float) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a double) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
2.1
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a decimal) partition by key (a);
|
||||||
|
insert into t1 values (2.1);
|
||||||
|
Warnings:
|
||||||
|
Note 1265 Data truncated for column 'a' at row 1
|
||||||
|
select * from t1 where a = 2.1;
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a date) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01');
|
||||||
|
select * from t1 where a = '2001-01-01';
|
||||||
|
a
|
||||||
|
2001-01-01
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a datetime) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01 01:02:03');
|
||||||
|
select * from t1 where a = '2001-01-01 01:02:03';
|
||||||
|
a
|
||||||
|
2001-01-01 01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a timestamp null) partition by key (a);
|
||||||
|
insert into t1 values ('2001-01-01 01:02:03');
|
||||||
|
select * from t1 where a = '2001-01-01 01:02:03';
|
||||||
|
a
|
||||||
|
2001-01-01 01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a time) partition by key (a);
|
||||||
|
insert into t1 values ('01:02:03');
|
||||||
|
select * from t1 where a = '01:02:03';
|
||||||
|
a
|
||||||
|
01:02:03
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a year) partition by key (a);
|
||||||
|
insert into t1 values ('2001');
|
||||||
|
select * from t1 where a = '2001';
|
||||||
|
a
|
||||||
|
2001
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(10) character set utf8) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(300) character set utf8) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(10) character set latin1) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(300) character set latin1) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(10) character set utf8) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(10) character set latin1) partition by key (a);
|
||||||
|
insert into t1 values ('abc');
|
||||||
|
select * from t1 where a = 'abc';
|
||||||
|
a
|
||||||
|
abc
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a enum('y','n')) partition by key (a);
|
||||||
|
insert into t1 values ('y');
|
||||||
|
select * from t1 where a = 'y';
|
||||||
|
a
|
||||||
|
y
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a set('y','n')) partition by key (a);
|
||||||
|
insert into t1 values ('y');
|
||||||
|
select * from t1 where a = 'y';
|
||||||
|
a
|
||||||
|
y
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(65531)) partition by key (a);
|
||||||
|
insert into t1 values ('bbbb');
|
||||||
|
insert into t1 values ('aaaa');
|
||||||
|
select * from t1 where a = 'aaa%';
|
||||||
|
a
|
||||||
|
select * from t1 where a like 'aaa%';
|
||||||
|
a
|
||||||
|
aaaa
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(65532)) partition by key (a);
|
||||||
|
insert into t1 values ('bbbb');
|
||||||
|
insert into t1 values ('aaaa');
|
||||||
|
select * from t1 where a = 'aaa%';
|
||||||
|
a
|
||||||
|
select * from t1 where a like 'aaa%';
|
||||||
|
a
|
||||||
|
aaaa
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(65533) not null) partition by key (a);
|
||||||
|
insert into t1 values ('aaaa');
|
||||||
|
select * from t1 where a = 'aaa%';
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a varchar(65533)) partition by key (a);
|
||||||
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs
|
||||||
|
create table t1 (a varchar(65534) not null) partition by key (a);
|
||||||
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs
|
||||||
|
create table t1 (a varchar(65535)) partition by key (a);
|
||||||
|
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs
|
@ -1,4 +1,13 @@
|
|||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
a int
|
||||||
|
)
|
||||||
|
PARTITION BY RANGE (a)
|
||||||
|
(
|
||||||
|
PARTITION p0 VALUES LESS THAN (1),
|
||||||
|
PARTITION p1 VALU ES LESS THAN (2)
|
||||||
|
);
|
||||||
|
ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
|
||||||
partition by list (a)
|
partition by list (a)
|
||||||
partitions 3
|
partitions 3
|
||||||
(partition x1 values in (1,2,9,4) tablespace ts1,
|
(partition x1 values in (1,2,9,4) tablespace ts1,
|
||||||
@ -351,7 +360,7 @@ partition by range (a)
|
|||||||
partitions 2
|
partitions 2
|
||||||
(partition x1 values less than (4),
|
(partition x1 values less than (4),
|
||||||
partition x2);
|
partition x2);
|
||||||
ERROR HY000: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
|
ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
a int not null,
|
a int not null,
|
||||||
b int not null,
|
b int not null,
|
||||||
@ -531,7 +540,7 @@ partition by list (a)
|
|||||||
partitions 2
|
partitions 2
|
||||||
(partition x1 values in (4),
|
(partition x1 values in (4),
|
||||||
partition x2);
|
partition x2);
|
||||||
ERROR HY000: LIST PARTITIONING requires definition of VALUES IN for each partition
|
ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
a int not null,
|
a int not null,
|
||||||
b int not null,
|
b int not null,
|
||||||
@ -551,7 +560,7 @@ partition by list (a)
|
|||||||
partitions 2
|
partitions 2
|
||||||
(partition x1 values in (4,6),
|
(partition x1 values in (4,6),
|
||||||
partition x2);
|
partition x2);
|
||||||
ERROR HY000: LIST PARTITIONING requires definition of VALUES IN for each partition
|
ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
a int not null,
|
a int not null,
|
||||||
b int not null,
|
b int not null,
|
||||||
|
@ -183,3 +183,6 @@ c1 c2 c3
|
|||||||
182 abc 2002-11-09
|
182 abc 2002-11-09
|
||||||
184 abc 2002-11-22
|
184 abc 2002-11-22
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (c1 INT) ENGINE=MyISAM PARTITION BY HASH(c1) PARTITIONS 1;
|
||||||
|
INSERT DELAYED INTO t1 VALUES (1);
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -136,3 +136,16 @@ SELECT COUNT(*) FROM t1;
|
|||||||
COUNT(*)
|
COUNT(*)
|
||||||
2
|
2
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
create table t1 (int_column int, char_column char(5))
|
||||||
|
PARTITION BY RANGE (int_column) subpartition by key (char_column) subpartitions 2
|
||||||
|
(PARTITION p1 VALUES LESS THAN (5) ENGINE = InnoDB);
|
||||||
|
alter table t1 PARTITION BY RANGE (int_column)
|
||||||
|
subpartition by key (char_column) subpartitions 2
|
||||||
|
(PARTITION p1 VALUES LESS THAN (5) ENGINE = myisam);
|
||||||
|
show create table t1;
|
||||||
|
Table Create Table
|
||||||
|
t1 CREATE TABLE `t1` (
|
||||||
|
`int_column` int(11) DEFAULT NULL,
|
||||||
|
`char_column` char(5) DEFAULT NULL
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (int_column) SUBPARTITION BY KEY (char_column) SUBPARTITIONS 2 (PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM) */
|
||||||
|
drop table t1;
|
||||||
|
@ -17,12 +17,6 @@ t1 CREATE TABLE `t1` (
|
|||||||
`f_date` date DEFAULT NULL,
|
`f_date` date DEFAULT NULL,
|
||||||
`f_varchar` varchar(30) DEFAULT NULL
|
`f_varchar` varchar(30) DEFAULT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 2 */
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 2 */
|
||||||
hello/master-data/test/t1#P#p0.MYD
|
|
||||||
hello/master-data/test/t1#P#p0.MYI
|
|
||||||
hello/master-data/test/t1#P#p1.MYD
|
|
||||||
hello/master-data/test/t1#P#p1.MYI
|
|
||||||
hello/master-data/test/t1.frm
|
|
||||||
hello/master-data/test/t1.par
|
|
||||||
ALTER TABLE t1 COALESCE PARTITION 1;
|
ALTER TABLE t1 COALESCE PARTITION 1;
|
||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
@ -30,10 +24,6 @@ t1 CREATE TABLE `t1` (
|
|||||||
`f_date` date DEFAULT NULL,
|
`f_date` date DEFAULT NULL,
|
||||||
`f_varchar` varchar(30) DEFAULT NULL
|
`f_varchar` varchar(30) DEFAULT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 1 */
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 1 */
|
||||||
hello/master-data/test/t1#P#p0.MYD
|
|
||||||
hello/master-data/test/t1#P#p0.MYI
|
|
||||||
hello/master-data/test/t1.frm
|
|
||||||
hello/master-data/test/t1.par
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (a int)
|
create table t1 (a int)
|
||||||
partition by list (a)
|
partition by list (a)
|
||||||
|
83
mysql-test/r/partition_symlink.result
Normal file
83
mysql-test/r/partition_symlink.result
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
DROP DATABASE IF EXISTS mysqltest2;
|
||||||
|
# Creating two non colliding tables mysqltest2.t1 and test.t1
|
||||||
|
# test.t1 have partitions in mysqltest2-directory!
|
||||||
|
# user root:
|
||||||
|
CREATE USER mysqltest_1@localhost;
|
||||||
|
CREATE DATABASE mysqltest2;
|
||||||
|
USE mysqltest2;
|
||||||
|
CREATE TABLE t1 (a INT);
|
||||||
|
INSERT INTO t1 VALUES (0);
|
||||||
|
# user mysqltest_1:
|
||||||
|
USE test;
|
||||||
|
CREATE TABLE t1 (a INT)
|
||||||
|
PARTITION BY LIST (a) (
|
||||||
|
PARTITION p0 VALUES IN (0)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2',
|
||||||
|
PARTITION p1 VALUES IN (1)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/test',
|
||||||
|
PARTITION p2 VALUES IN (2)
|
||||||
|
);
|
||||||
|
# without the patch for bug#32091 this would create
|
||||||
|
# files mysqltest2/t1.MYD + .MYI and possible overwrite
|
||||||
|
# the mysqltest2.t1 table (depending on bug#32111)
|
||||||
|
ALTER TABLE t1 REMOVE PARTITIONING;
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
SELECT * FROM t1;
|
||||||
|
a
|
||||||
|
1
|
||||||
|
# user root:
|
||||||
|
USE mysqltest2;
|
||||||
|
FLUSH TABLES;
|
||||||
|
# if the patch works, this should be different
|
||||||
|
# and before the patch they were the same!
|
||||||
|
SELECT * FROM t1;
|
||||||
|
a
|
||||||
|
0
|
||||||
|
USE test;
|
||||||
|
SELECT * FROM t1;
|
||||||
|
a
|
||||||
|
1
|
||||||
|
DROP TABLE t1;
|
||||||
|
DROP DATABASE mysqltest2;
|
||||||
|
# test that symlinks can not overwrite files when CREATE TABLE
|
||||||
|
# user root:
|
||||||
|
CREATE DATABASE mysqltest2;
|
||||||
|
USE mysqltest2;
|
||||||
|
CREATE TABLE t1 (a INT)
|
||||||
|
PARTITION BY LIST (a) (
|
||||||
|
PARTITION p0 VALUES IN (0)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2',
|
||||||
|
PARTITION p1 VALUES IN (1)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
);
|
||||||
|
# user mysqltest_1:
|
||||||
|
USE test;
|
||||||
|
CREATE TABLE t1 (a INT)
|
||||||
|
PARTITION BY LIST (a) (
|
||||||
|
PARTITION p0 VALUES IN (0)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2',
|
||||||
|
PARTITION p1 VALUES IN (1)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
);
|
||||||
|
Got one of the listed errors
|
||||||
|
CREATE TABLE t1 (a INT)
|
||||||
|
PARTITION BY LIST (a) (
|
||||||
|
PARTITION p0 VALUES IN (0)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/test'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/test',
|
||||||
|
PARTITION p1 VALUES IN (1)
|
||||||
|
DATA DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2'
|
||||||
|
INDEX DIRECTORY 'MYSQLTEST_VARDIR/master-data/mysqltest2'
|
||||||
|
);
|
||||||
|
Got one of the listed errors
|
||||||
|
# user root (cleanup):
|
||||||
|
DROP DATABASE mysqltest2;
|
||||||
|
USE test;
|
||||||
|
DROP USER mysqltest_1@localhost;
|
@ -17,3 +17,13 @@ UNINSTALL PLUGIN EXAMPLE;
|
|||||||
ERROR 42000: PLUGIN EXAMPLE does not exist
|
ERROR 42000: PLUGIN EXAMPLE does not exist
|
||||||
UNINSTALL PLUGIN non_exist;
|
UNINSTALL PLUGIN non_exist;
|
||||||
ERROR 42000: PLUGIN non_exist does not exist
|
ERROR 42000: PLUGIN non_exist does not exist
|
||||||
|
#
|
||||||
|
# Bug#32034: check_func_enum() does not check correct values but set it
|
||||||
|
# to impossible int val
|
||||||
|
#
|
||||||
|
INSTALL PLUGIN example SONAME 'ha_example.so';
|
||||||
|
SET GLOBAL example_enum_var= e1;
|
||||||
|
SET GLOBAL example_enum_var= e2;
|
||||||
|
SET GLOBAL example_enum_var= impossible;
|
||||||
|
ERROR 42000: Variable 'enum_var' can't be set to the value of 'impossible'
|
||||||
|
UNINSTALL PLUGIN example;
|
||||||
|
@ -2680,4 +2680,21 @@ t1 CREATE TABLE `t1` (
|
|||||||
KEY `c` (`c`(10))
|
KEY `c` (`c`(10))
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
drop table if exists t1, t2;
|
||||||
|
create table t1 (a int, b int);
|
||||||
|
create table t2 like t1;
|
||||||
|
insert into t1 (a, b) values (1,1), (1,2), (1,3), (1,4), (1,5),
|
||||||
|
(2,2), (2,3), (2,1), (3,1), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6);
|
||||||
|
insert into t2 select a, max(b) from t1 group by a;
|
||||||
|
prepare stmt from "delete from t2 where (select (select max(b) from t1 group
|
||||||
|
by a having a < 2) x from t1) > 10000";
|
||||||
|
delete from t2 where (select (select max(b) from t1 group
|
||||||
|
by a having a < 2) x from t1) > 10000;
|
||||||
|
ERROR 21000: Subquery returns more than 1 row
|
||||||
|
execute stmt;
|
||||||
|
ERROR 21000: Subquery returns more than 1 row
|
||||||
|
execute stmt;
|
||||||
|
ERROR 21000: Subquery returns more than 1 row
|
||||||
|
deallocate prepare stmt;
|
||||||
|
drop table t1, t2;
|
||||||
End of 5.1 tests.
|
End of 5.1 tests.
|
||||||
|
@ -63,7 +63,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
|
@ -63,7 +63,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
|
@ -64,7 +64,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
|
@ -106,7 +106,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
@ -3128,7 +3128,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
|
@ -2827,6 +2827,14 @@ FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
|
|||||||
FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
|
FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
|
||||||
8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
|
8FFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (c0 int);
|
||||||
|
CREATE TABLE t2 (c0 int);
|
||||||
|
INSERT INTO t1 VALUES(@@connect_timeout);
|
||||||
|
INSERT INTO t2 VALUES(@@connect_timeout);
|
||||||
|
SELECT * FROM t1 JOIN t2 ON t1.c0 = t2.c0 WHERE (t1.c0 <=> @@connect_timeout);
|
||||||
|
c0 c0
|
||||||
|
X X
|
||||||
|
DROP TABLE t1, t2;
|
||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
|
K2C4 varchar(4) character set latin1 collate latin1_bin NOT NULL default '',
|
||||||
@ -3233,40 +3241,40 @@ drop table t1, t2 ,t3;
|
|||||||
create table t1(f1 int, f2 date);
|
create table t1(f1 int, f2 date);
|
||||||
insert into t1 values(1,'2005-01-01'),(2,'2005-09-01'),(3,'2005-09-30'),
|
insert into t1 values(1,'2005-01-01'),(2,'2005-09-01'),(3,'2005-09-30'),
|
||||||
(4,'2005-10-01'),(5,'2005-12-30');
|
(4,'2005-10-01'),(5,'2005-12-30');
|
||||||
select * from t1 where f2 >= 0;
|
select * from t1 where f2 >= 0 order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
1 2005-01-01
|
1 2005-01-01
|
||||||
2 2005-09-01
|
2 2005-09-01
|
||||||
3 2005-09-30
|
3 2005-09-30
|
||||||
4 2005-10-01
|
4 2005-10-01
|
||||||
5 2005-12-30
|
5 2005-12-30
|
||||||
select * from t1 where f2 >= '0000-00-00';
|
select * from t1 where f2 >= '0000-00-00' order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
1 2005-01-01
|
1 2005-01-01
|
||||||
2 2005-09-01
|
2 2005-09-01
|
||||||
3 2005-09-30
|
3 2005-09-30
|
||||||
4 2005-10-01
|
4 2005-10-01
|
||||||
5 2005-12-30
|
5 2005-12-30
|
||||||
select * from t1 where f2 >= '2005-09-31';
|
select * from t1 where f2 >= '2005-09-31' order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
4 2005-10-01
|
4 2005-10-01
|
||||||
5 2005-12-30
|
5 2005-12-30
|
||||||
select * from t1 where f2 >= '2005-09-3a';
|
select * from t1 where f2 >= '2005-09-3a' order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
|
3 2005-09-30
|
||||||
4 2005-10-01
|
4 2005-10-01
|
||||||
5 2005-12-30
|
5 2005-12-30
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1292 Incorrect date value: '2005-09-3a' for column 'f2' at row 1
|
Warning 1292 Incorrect date value: '2005-09-3a' for column 'f2' at row 1
|
||||||
select * from t1 where f2 <= '2005-09-31';
|
select * from t1 where f2 <= '2005-09-31' order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
1 2005-01-01
|
1 2005-01-01
|
||||||
2 2005-09-01
|
2 2005-09-01
|
||||||
3 2005-09-30
|
3 2005-09-30
|
||||||
select * from t1 where f2 <= '2005-09-3a';
|
select * from t1 where f2 <= '2005-09-3a' order by f2;
|
||||||
f1 f2
|
f1 f2
|
||||||
1 2005-01-01
|
1 2005-01-01
|
||||||
2 2005-09-01
|
2 2005-09-01
|
||||||
3 2005-09-30
|
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1292 Incorrect date value: '2005-09-3a' for column 'f2' at row 1
|
Warning 1292 Incorrect date value: '2005-09-3a' for column 'f2' at row 1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
@ -4062,25 +4070,243 @@ x
|
|||||||
1
|
1
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1466 Leading spaces are removed from name ' x'
|
Warning 1466 Leading spaces are removed from name ' x'
|
||||||
|
CREATE VIEW v1 AS SELECT 1 AS ``;
|
||||||
|
ERROR 42000: Incorrect column name ''
|
||||||
CREATE VIEW v1 AS SELECT 1 AS ` `;
|
CREATE VIEW v1 AS SELECT 1 AS ` `;
|
||||||
Warnings:
|
ERROR 42000: Incorrect column name ' '
|
||||||
Warning 1474 Name ' ' has become ''
|
CREATE VIEW v1 AS SELECT 1 AS ` `;
|
||||||
SELECT `` FROM v1;
|
ERROR 42000: Incorrect column name ' '
|
||||||
|
CREATE VIEW v1 AS SELECT (SELECT 1 AS ` `);
|
||||||
1
|
ERROR 42000: Incorrect column name ' '
|
||||||
CREATE VIEW v2 AS SELECT 1 AS ` `;
|
CREATE VIEW v1 AS SELECT 1 AS ` x`;
|
||||||
Warnings:
|
|
||||||
Warning 1474 Name ' ' has become ''
|
|
||||||
SELECT `` FROM v2;
|
|
||||||
|
|
||||||
1
|
|
||||||
CREATE VIEW v3 AS SELECT 1 AS ` x`;
|
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1466 Leading spaces are removed from name ' x'
|
Warning 1466 Leading spaces are removed from name ' x'
|
||||||
SELECT `x` FROM v3;
|
SELECT `x` FROM v1;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
DROP VIEW v1, v2, v3;
|
ALTER VIEW v1 AS SELECT 1 AS ` `;
|
||||||
|
ERROR 42000: Incorrect column name ' '
|
||||||
|
DROP VIEW v1;
|
||||||
|
select str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
|
||||||
|
and '2007/10/20 00:00:00 GMT';
|
||||||
|
str_to_date('2007-10-09','%Y-%m-%d') between '2007/10/01 00:00:00 GMT'
|
||||||
|
and '2007/10/20 00:00:00 GMT'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007/10/01 00:00:00 GMT'
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007/10/20 00:00:00 GMT'
|
||||||
|
select str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-09','%Y-%m-%d') > '2007/10/01 00:00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '2007/10/01 00:00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-09','%Y-%m-%d') <= '2007/10/2000:00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '2007/10/2000:00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-1 00:00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '2007-10-1 00:00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 x00:00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '2007-10-01 x00:00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 00:x00:00 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 00:x00:00 GMT-6'
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d %H:%i:%s') = '2007-10-01 x12:34:56 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 x12:34:56 GMT-6'
|
||||||
|
select str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
|
||||||
|
str_to_date('2007-10-01 12:34:00','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
|
||||||
|
select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6';
|
||||||
|
str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34x:56 GMT-6'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34x:56 GMT-6'
|
||||||
|
select str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56';
|
||||||
|
str_to_date('2007-10-01 12:34:56','%Y-%m-%d %H:%i:%s') = '2007-10-01 12:34:56'
|
||||||
|
1
|
||||||
|
select str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00';
|
||||||
|
str_to_date('2007-10-01','%Y-%m-%d') = '2007-10-01 12:00:00'
|
||||||
|
0
|
||||||
|
select str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00';
|
||||||
|
str_to_date('2007-10-01 12','%Y-%m-%d %H') = '2007-10-01 12:00:00'
|
||||||
|
1
|
||||||
|
select str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00';
|
||||||
|
str_to_date('2007-10-01 12:34','%Y-%m-%d %H') = '2007-10-01 12:00:00'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-01 12:34'
|
||||||
|
select str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34';
|
||||||
|
str_to_date('2007-02-30 12:34','%Y-%m-%d %H:%i') = '2007-02-30 12:34'
|
||||||
|
1
|
||||||
|
select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
|
||||||
|
str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
|
||||||
|
1
|
||||||
|
select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
|
||||||
|
and '2007/10/20 00:00:00';
|
||||||
|
str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01 00:00:00'
|
||||||
|
and '2007/10/20 00:00:00'
|
||||||
|
1
|
||||||
|
set SQL_MODE=TRADITIONAL;
|
||||||
|
select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
|
||||||
|
str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-00 12:34'
|
||||||
|
select str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34';
|
||||||
|
str_to_date('2007-10-01 12:34','%Y-%m-%d %H:%i') = '2007-10-00 12:34'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-00 12:34'
|
||||||
|
select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
|
||||||
|
str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: '2007-10-00 12:34:00'
|
||||||
|
select str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
|
||||||
|
and '2007/10/20';
|
||||||
|
str_to_date('2007-10-00','%Y-%m-%d') between '2007/09/01'
|
||||||
|
and '2007/10/20'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Incorrect datetime value: '2007-10-00' for column '2007/09/01' at row 1
|
||||||
|
Warning 1292 Incorrect datetime value: '2007-10-00' for column '2007/10/20' at row 1
|
||||||
|
set SQL_MODE=DEFAULT;
|
||||||
|
select str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20';
|
||||||
|
str_to_date('2007-10-00','%Y-%m-%d') between '' and '2007/10/20'
|
||||||
|
1
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: ''
|
||||||
|
select str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20';
|
||||||
|
str_to_date('','%Y-%m-%d') between '2007/10/01' and '2007/10/20'
|
||||||
|
0
|
||||||
|
select str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34';
|
||||||
|
str_to_date('','%Y-%m-%d %H:%i') = '2007-10-01 12:34'
|
||||||
|
0
|
||||||
|
select str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34';
|
||||||
|
str_to_date(NULL,'%Y-%m-%d %H:%i') = '2007-10-01 12:34'
|
||||||
|
NULL
|
||||||
|
select str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = '';
|
||||||
|
str_to_date('2007-10-00 12:34','%Y-%m-%d %H:%i') = ''
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect datetime value: ''
|
||||||
|
select str_to_date('1','%Y-%m-%d') = '1';
|
||||||
|
str_to_date('1','%Y-%m-%d') = '1'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '1'
|
||||||
|
select str_to_date('1','%Y-%m-%d') = '1';
|
||||||
|
str_to_date('1','%Y-%m-%d') = '1'
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: '1'
|
||||||
|
select str_to_date('','%Y-%m-%d') = '';
|
||||||
|
str_to_date('','%Y-%m-%d') = ''
|
||||||
|
0
|
||||||
|
Warnings:
|
||||||
|
Warning 1292 Truncated incorrect date value: ''
|
||||||
|
select str_to_date('1000-01-01','%Y-%m-%d') between '0000-00-00' and NULL;
|
||||||
|
str_to_date('1000-01-01','%Y-%m-%d') between '0000-00-00' and NULL
|
||||||
|
0
|
||||||
|
select str_to_date('1000-01-01','%Y-%m-%d') between NULL and '2000-00-00';
|
||||||
|
str_to_date('1000-01-01','%Y-%m-%d') between NULL and '2000-00-00'
|
||||||
|
0
|
||||||
|
select str_to_date('1000-01-01','%Y-%m-%d') between NULL and NULL;
|
||||||
|
str_to_date('1000-01-01','%Y-%m-%d') between NULL and NULL
|
||||||
|
0
|
||||||
|
CREATE TABLE t1 (c11 INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
||||||
|
CREATE TABLE t2 (c21 INT UNSIGNED NOT NULL,
|
||||||
|
c22 INT DEFAULT NULL,
|
||||||
|
KEY(c21, c22));
|
||||||
|
CREATE TABLE t3 (c31 INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
|
c32 INT DEFAULT NULL,
|
||||||
|
c33 INT NOT NULL,
|
||||||
|
c34 INT UNSIGNED DEFAULT 0,
|
||||||
|
KEY (c33, c34, c32));
|
||||||
|
INSERT INTO t1 values (),(),(),(),();
|
||||||
|
INSERT INTO t2 SELECT a.c11, b.c11 FROM t1 a, t1 b;
|
||||||
|
INSERT INTO t3 VALUES (1, 1, 1, 0),
|
||||||
|
(2, 2, 0, 0),
|
||||||
|
(3, 3, 1, 0),
|
||||||
|
(4, 4, 0, 0),
|
||||||
|
(5, 5, 1, 0);
|
||||||
|
SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
|
||||||
|
t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
|
||||||
|
t3.c33 = 1 AND t2.c22 in (1, 3)
|
||||||
|
ORDER BY c32;
|
||||||
|
c32
|
||||||
|
1
|
||||||
|
1
|
||||||
|
3
|
||||||
|
3
|
||||||
|
5
|
||||||
|
5
|
||||||
|
SELECT c32 FROM t1, t2, t3 WHERE t1.c11 IN (1, 3, 5) AND
|
||||||
|
t3.c31 = t1.c11 AND t2.c21 = t1.c11 AND
|
||||||
|
t3.c33 = 1 AND t2.c22 in (1, 3)
|
||||||
|
ORDER BY c32 DESC;
|
||||||
|
c32
|
||||||
|
5
|
||||||
|
5
|
||||||
|
3
|
||||||
|
3
|
||||||
|
1
|
||||||
|
1
|
||||||
|
DROP TABLE t1, t2, t3;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#30736: Row Size Too Large Error Creating a Table and
|
||||||
|
# Inserting Data.
|
||||||
|
#
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
DROP TABLE IF EXISTS t2;
|
||||||
|
|
||||||
|
CREATE TABLE t1(
|
||||||
|
c1 DECIMAL(10, 2),
|
||||||
|
c2 FLOAT);
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (0, 1), (2, 3), (4, 5);
|
||||||
|
|
||||||
|
CREATE TABLE t2(
|
||||||
|
c3 DECIMAL(10, 2))
|
||||||
|
SELECT
|
||||||
|
c1 * c2 AS c3
|
||||||
|
FROM t1;
|
||||||
|
|
||||||
|
SELECT * FROM t1;
|
||||||
|
c1 c2
|
||||||
|
0.00 1
|
||||||
|
2.00 3
|
||||||
|
4.00 5
|
||||||
|
|
||||||
|
SELECT * FROM t2;
|
||||||
|
c3
|
||||||
|
0.00
|
||||||
|
6.00
|
||||||
|
20.00
|
||||||
|
|
||||||
|
DROP TABLE t1;
|
||||||
|
DROP TABLE t2;
|
||||||
|
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
create table t1(a INT, KEY (a));
|
create table t1(a INT, KEY (a));
|
||||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
||||||
|
@ -979,7 +979,7 @@ def COLUMNS CHARACTER_SET_NAME CHARACTER_SET_NAME 253 192 0 Y 0 0 33
|
|||||||
def COLUMNS COLLATION_NAME COLLATION_NAME 253 192 0 Y 0 0 33
|
def COLUMNS COLLATION_NAME COLLATION_NAME 253 192 0 Y 0 0 33
|
||||||
def COLUMNS COLUMN_TYPE COLUMN_TYPE 252 589815 7 N 17 0 33
|
def COLUMNS COLUMN_TYPE COLUMN_TYPE 252 589815 7 N 17 0 33
|
||||||
def COLUMNS COLUMN_KEY COLUMN_KEY 253 9 3 N 1 0 33
|
def COLUMNS COLUMN_KEY COLUMN_KEY 253 9 3 N 1 0 33
|
||||||
def COLUMNS EXTRA EXTRA 253 60 0 N 1 0 33
|
def COLUMNS EXTRA EXTRA 253 81 0 N 1 0 33
|
||||||
def COLUMNS PRIVILEGES PRIVILEGES 253 240 31 N 1 0 33
|
def COLUMNS PRIVILEGES PRIVILEGES 253 240 31 N 1 0 33
|
||||||
def COLUMNS COLUMN_COMMENT COLUMN_COMMENT 253 765 0 N 1 0 33
|
def COLUMNS COLUMN_COMMENT COLUMN_COMMENT 253 765 0 N 1 0 33
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||||
@ -998,7 +998,7 @@ def COLUMNS COLUMN_TYPE Type 252 589815 7 N 17 0 33
|
|||||||
def COLUMNS IS_NULLABLE Null 253 9 2 N 1 0 33
|
def COLUMNS IS_NULLABLE Null 253 9 2 N 1 0 33
|
||||||
def COLUMNS COLUMN_KEY Key 253 9 3 N 1 0 33
|
def COLUMNS COLUMN_KEY Key 253 9 3 N 1 0 33
|
||||||
def COLUMNS COLUMN_DEFAULT Default 252 589815 0 Y 16 0 33
|
def COLUMNS COLUMN_DEFAULT Default 252 589815 0 Y 16 0 33
|
||||||
def COLUMNS EXTRA Extra 253 60 0 N 1 0 33
|
def COLUMNS EXTRA Extra 253 81 0 N 1 0 33
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
c int(11) NO PRI NULL
|
c int(11) NO PRI NULL
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
@ -72,3 +72,8 @@ count(*)
|
|||||||
select count(*) from information_schema.USER_PRIVILEGES;
|
select count(*) from information_schema.USER_PRIVILEGES;
|
||||||
count(*)
|
count(*)
|
||||||
0
|
0
|
||||||
|
CREATE FUNCTION a RETURNS STRING SONAME '';
|
||||||
|
ERROR HY000: Can't initialize function 'a'; UDFs are unavailable with the --skip-grant-tables option
|
||||||
|
DROP FUNCTION a;
|
||||||
|
ERROR 42000: FUNCTION test.a does not exist
|
||||||
|
End of 5.0 tests
|
||||||
|
@ -1428,7 +1428,6 @@ create function bug20701() returns varchar(25) binary return "test";
|
|||||||
ERROR 42000: This version of MySQL doesn't yet support 'return value collation'
|
ERROR 42000: This version of MySQL doesn't yet support 'return value collation'
|
||||||
create function bug20701() returns varchar(25) return "test";
|
create function bug20701() returns varchar(25) return "test";
|
||||||
drop function bug20701;
|
drop function bug20701;
|
||||||
End of 5.1 tests
|
|
||||||
create procedure proc_26503_error_1()
|
create procedure proc_26503_error_1()
|
||||||
begin
|
begin
|
||||||
retry:
|
retry:
|
||||||
@ -1523,3 +1522,60 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
|
|||||||
SELECT ..inexistent();
|
SELECT ..inexistent();
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.inexistent()' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.inexistent()' at line 1
|
||||||
USE test;
|
USE test;
|
||||||
|
create function f1() returns int
|
||||||
|
begin
|
||||||
|
set @test = 1, password = password('foo');
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
ERROR HY000: Not allowed to set autocommit from a stored function or trigger
|
||||||
|
create trigger t1
|
||||||
|
before insert on t2 for each row set password = password('foo');|
|
||||||
|
ERROR HY000: Not allowed to set autocommit from a stored function or trigger
|
||||||
|
drop function if exists f1;
|
||||||
|
drop function if exists f2;
|
||||||
|
drop table if exists t1, t2;
|
||||||
|
create function f1() returns int
|
||||||
|
begin
|
||||||
|
drop temporary table t1;
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
create temporary table t1 as select f1();
|
||||||
|
ERROR HY000: Can't reopen table: 't1'
|
||||||
|
create function f2() returns int
|
||||||
|
begin
|
||||||
|
create temporary table t2 as select f1();
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
create temporary table t1 as select f2();
|
||||||
|
ERROR HY000: Can't reopen table: 't1'
|
||||||
|
drop function f1;
|
||||||
|
drop function f2;
|
||||||
|
create function f1() returns int
|
||||||
|
begin
|
||||||
|
drop temporary table t2,t1;
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
create function f2() returns int
|
||||||
|
begin
|
||||||
|
create temporary table t2 as select f1();
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
create temporary table t1 as select f2();
|
||||||
|
ERROR HY000: Can't reopen table: 't2'
|
||||||
|
drop function f1;
|
||||||
|
drop function f2;
|
||||||
|
create temporary table t2(a int);
|
||||||
|
select * from t2;
|
||||||
|
a
|
||||||
|
create function f2() returns int
|
||||||
|
begin
|
||||||
|
drop temporary table t2;
|
||||||
|
return 1;
|
||||||
|
end|
|
||||||
|
select f2();
|
||||||
|
f2()
|
||||||
|
1
|
||||||
|
drop function f2;
|
||||||
|
drop table t2;
|
||||||
|
ERROR 42S02: Unknown table 't2'
|
||||||
|
End of 5.1 tests
|
||||||
|
@ -5670,7 +5670,7 @@ drop function if exists pi;
|
|||||||
create function pi() returns varchar(50)
|
create function pi() returns varchar(50)
|
||||||
return "pie, my favorite desert.";
|
return "pie, my favorite desert.";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'pi' has the same name as a native function
|
Note 1585 This function 'pi' has the same name as a native function
|
||||||
SET @save_sql_mode=@@sql_mode;
|
SET @save_sql_mode=@@sql_mode;
|
||||||
SET SQL_MODE='IGNORE_SPACE';
|
SET SQL_MODE='IGNORE_SPACE';
|
||||||
select pi(), pi ();
|
select pi(), pi ();
|
||||||
@ -5719,15 +5719,15 @@ use test;
|
|||||||
create function `database`() returns varchar(50)
|
create function `database`() returns varchar(50)
|
||||||
return "Stored function database";
|
return "Stored function database";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'database' has the same name as a native function
|
Note 1585 This function 'database' has the same name as a native function
|
||||||
create function `current_user`() returns varchar(50)
|
create function `current_user`() returns varchar(50)
|
||||||
return "Stored function current_user";
|
return "Stored function current_user";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'current_user' has the same name as a native function
|
Note 1585 This function 'current_user' has the same name as a native function
|
||||||
create function md5(x varchar(50)) returns varchar(50)
|
create function md5(x varchar(50)) returns varchar(50)
|
||||||
return "Stored function md5";
|
return "Stored function md5";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'md5' has the same name as a native function
|
Note 1585 This function 'md5' has the same name as a native function
|
||||||
SET SQL_MODE='IGNORE_SPACE';
|
SET SQL_MODE='IGNORE_SPACE';
|
||||||
select database(), database ();
|
select database(), database ();
|
||||||
database() database ()
|
database() database ()
|
||||||
|
@ -7,11 +7,11 @@ return 1;
|
|||||||
create function x() returns int
|
create function x() returns int
|
||||||
return 2;
|
return 2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'x' has the same name as a native function
|
Note 1585 This function 'x' has the same name as a native function
|
||||||
create function y() returns int
|
create function y() returns int
|
||||||
return 3;
|
return 3;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1584 This function 'y' has the same name as a native function
|
Note 1585 This function 'y' has the same name as a native function
|
||||||
select a();
|
select a();
|
||||||
a()
|
a()
|
||||||
1
|
1
|
||||||
|
@ -4139,6 +4139,66 @@ SELECT (SELECT SUM(t1.a) FROM t2 WHERE a=1) FROM t1;
|
|||||||
(SELECT SUM(t1.a) FROM t2 WHERE a=1)
|
(SELECT SUM(t1.a) FROM t2 WHERE a=1)
|
||||||
3
|
3
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
CREATE TABLE t1 (a1 INT, a2 INT);
|
||||||
|
CREATE TABLE t2 (b1 INT, b2 INT);
|
||||||
|
INSERT INTO t1 VALUES (100, 200);
|
||||||
|
INSERT INTO t1 VALUES (101, 201);
|
||||||
|
INSERT INTO t2 VALUES (101, 201);
|
||||||
|
INSERT INTO t2 VALUES (103, 203);
|
||||||
|
SELECT ((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL FROM t1;
|
||||||
|
((a1,a2) IN (SELECT * FROM t2 WHERE b2 > 0)) IS NULL
|
||||||
|
0
|
||||||
|
0
|
||||||
|
DROP TABLE t1, t2;
|
||||||
|
CREATE TABLE t1 (s1 BINARY(5), s2 VARBINARY(5));
|
||||||
|
INSERT INTO t1 VALUES (0x41,0x41), (0x42,0x42), (0x43,0x43);
|
||||||
|
SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
|
||||||
|
s1 s2
|
||||||
|
SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
|
||||||
|
s1 s2
|
||||||
|
CREATE INDEX I1 ON t1 (s1);
|
||||||
|
CREATE INDEX I2 ON t1 (s2);
|
||||||
|
SELECT s1, s2 FROM t1 WHERE s2 IN (SELECT s1 FROM t1);
|
||||||
|
s1 s2
|
||||||
|
SELECT s1, s2 FROM t1 WHERE (s2, 10) IN (SELECT s1, 10 FROM t1);
|
||||||
|
s1 s2
|
||||||
|
TRUNCATE t1;
|
||||||
|
INSERT INTO t1 VALUES (0x41,0x41);
|
||||||
|
SELECT * FROM t1 WHERE s1 = (SELECT s2 FROM t1);
|
||||||
|
s1 s2
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a1 VARBINARY(2) NOT NULL DEFAULT '0', PRIMARY KEY (a1));
|
||||||
|
CREATE TABLE t2 (a2 BINARY(2) default '0', INDEX (a2));
|
||||||
|
CREATE TABLE t3 (a3 BINARY(2) default '0');
|
||||||
|
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
||||||
|
INSERT INTO t2 VALUES (1),(2),(3);
|
||||||
|
INSERT INTO t3 VALUES (1),(2),(3);
|
||||||
|
SELECT LEFT(t2.a2, 1) FROM t2,t3 WHERE t3.a3=t2.a2;
|
||||||
|
LEFT(t2.a2, 1)
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
SELECT t1.a1, t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2) FROM t1;
|
||||||
|
a1 t1.a1 in (SELECT t2.a2 FROM t2,t3 WHERE t3.a3=t2.a2)
|
||||||
|
1 0
|
||||||
|
2 0
|
||||||
|
3 0
|
||||||
|
4 0
|
||||||
|
DROP TABLE t1,t2,t3;
|
||||||
|
CREATE TABLE t1 (a1 BINARY(3) PRIMARY KEY, b1 VARBINARY(3));
|
||||||
|
CREATE TABLE t2 (a2 VARBINARY(3) PRIMARY KEY);
|
||||||
|
CREATE TABLE t3 (a3 VARBINARY(3) PRIMARY KEY);
|
||||||
|
INSERT INTO t1 VALUES (1,10), (2,20), (3,30), (4,40);
|
||||||
|
INSERT INTO t2 VALUES (2), (3), (4), (5);
|
||||||
|
INSERT INTO t3 VALUES (10), (20), (30);
|
||||||
|
SELECT LEFT(t1.a1,1) FROM t1,t3 WHERE t1.b1=t3.a3;
|
||||||
|
LEFT(t1.a1,1)
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
SELECT a2 FROM t2 WHERE t2.a2 IN (SELECT t1.a1 FROM t1,t3 WHERE t1.b1=t3.a3);
|
||||||
|
a2
|
||||||
|
DROP TABLE t1, t2, t3;
|
||||||
End of 5.0 tests.
|
End of 5.0 tests.
|
||||||
CREATE TABLE t1 (a int, b int);
|
CREATE TABLE t1 (a int, b int);
|
||||||
INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
|
INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
|
||||||
|
@ -99,6 +99,12 @@ t1 CREATE TABLE `t1` (
|
|||||||
`b` int(11) DEFAULT NULL
|
`b` int(11) DEFAULT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1(a INT)
|
||||||
|
DATA DIRECTORY='TEST_DIR/master-data/mysql'
|
||||||
|
INDEX DIRECTORY='TEST_DIR/master-data/mysql';
|
||||||
|
RENAME TABLE t1 TO user;
|
||||||
|
ERROR HY000: Can't create/write to file 'TEST_DIR/master-data/mysql/user.MYI' (Errcode: 17)
|
||||||
|
DROP TABLE t1;
|
||||||
show create table t1;
|
show create table t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t1 CREATE TABLE `t1` (
|
t1 CREATE TABLE `t1` (
|
||||||
|
@ -1978,3 +1978,9 @@ a
|
|||||||
1
|
1
|
||||||
drop table table_25411_a;
|
drop table table_25411_a;
|
||||||
drop table table_25411_b;
|
drop table table_25411_b;
|
||||||
|
DROP TRIGGER IF EXISTS trg;
|
||||||
|
Warnings:
|
||||||
|
Note 1360 Trigger does not exist
|
||||||
|
SHOW CREATE TRIGGER trg;
|
||||||
|
ERROR HY000: Trigger does not exist
|
||||||
|
End of 5.1 tests.
|
||||||
|
@ -812,4 +812,81 @@ select group_concat(f1),group_concat(f2) from t1;
|
|||||||
group_concat(f1) group_concat(f2)
|
group_concat(f1) group_concat(f2)
|
||||||
-0.123456 0.123456
|
-0.123456 0.123456
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
create table t1 (
|
||||||
|
ua_id decimal(22,0) not null,
|
||||||
|
ua_invited_by_id decimal(22,0) default NULL,
|
||||||
|
primary key(ua_id)
|
||||||
|
);
|
||||||
|
insert into t1 values (123, NULL), (456, NULL);
|
||||||
|
this must not produce error 1048:
|
||||||
|
select * from t1 where ua_invited_by_id not in (select ua_id from t1);
|
||||||
|
ua_id ua_invited_by_id
|
||||||
|
drop table t1;
|
||||||
|
DROP TABLE IF EXISTS t3;
|
||||||
|
DROP TABLE IF EXISTS t4;
|
||||||
|
CREATE TABLE t1( a NUMERIC, b INT );
|
||||||
|
INSERT INTO t1 VALUES (123456, 40), (123456, 40);
|
||||||
|
SELECT TRUNCATE( a, b ) AS c FROM t1 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, b ) AS c FROM t1 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, 100 ) AS c FROM t1 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
CREATE TABLE t2( a NUMERIC, b INT );
|
||||||
|
INSERT INTO t2 VALUES (123456, 100);
|
||||||
|
SELECT TRUNCATE( a, b ) AS c FROM t2 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, b ) AS c FROM t2 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
CREATE TABLE t3( a DECIMAL, b INT );
|
||||||
|
INSERT INTO t3 VALUES (123456, 40), (123456, 40);
|
||||||
|
SELECT TRUNCATE( a, b ) AS c FROM t3 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, b ) AS c FROM t3 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, 100 ) AS c FROM t3 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
CREATE TABLE t4( a DECIMAL, b INT );
|
||||||
|
INSERT INTO t4 VALUES (123456, 40), (123456, 40);
|
||||||
|
SELECT TRUNCATE( a, b ) AS c FROM t4 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, b ) AS c FROM t4 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456
|
||||||
|
123456
|
||||||
|
SELECT ROUND( a, 100 ) AS c FROM t4 ORDER BY c;
|
||||||
|
c
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
123456.000000000000000000000000000000
|
||||||
|
delete from t1;
|
||||||
|
INSERT INTO t1 VALUES (1234567890, 20), (999.99, 5);
|
||||||
|
Warnings:
|
||||||
|
Note 1265 Data truncated for column 'a' at row 2
|
||||||
|
show create table t1;
|
||||||
|
Table Create Table
|
||||||
|
t1 CREATE TABLE `t1` (
|
||||||
|
`a` decimal(10,0) DEFAULT NULL,
|
||||||
|
`b` int(11) DEFAULT NULL
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
|
select round(a,b) as c from t1 order by c;
|
||||||
|
c
|
||||||
|
1000
|
||||||
|
1234567890
|
||||||
|
DROP TABLE t1, t2, t3, t4;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
|
@ -57,7 +57,7 @@ ushort smallint(5) unsigned zerofill NULL NO MUL 00000 #
|
|||||||
umedium mediumint(8) unsigned NULL NO MUL 0 #
|
umedium mediumint(8) unsigned NULL NO MUL 0 #
|
||||||
ulong int(11) unsigned NULL NO MUL 0 #
|
ulong int(11) unsigned NULL NO MUL 0 #
|
||||||
ulonglong bigint(13) unsigned NULL NO MUL 0 #
|
ulonglong bigint(13) unsigned NULL NO MUL 0 #
|
||||||
time_stamp timestamp NULL NO CURRENT_TIMESTAMP #
|
time_stamp timestamp NULL NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP #
|
||||||
date_field date NULL YES NULL #
|
date_field date NULL YES NULL #
|
||||||
time_field time NULL YES NULL #
|
time_field time NULL YES NULL #
|
||||||
date_time datetime NULL YES NULL #
|
date_time datetime NULL YES NULL #
|
||||||
@ -225,7 +225,7 @@ ushort smallint(5) unsigned zerofill NULL NO 00000 #
|
|||||||
umedium mediumint(8) unsigned NULL NO MUL 0 #
|
umedium mediumint(8) unsigned NULL NO MUL 0 #
|
||||||
ulong int(11) unsigned NULL NO MUL 0 #
|
ulong int(11) unsigned NULL NO MUL 0 #
|
||||||
ulonglong bigint(13) unsigned NULL NO MUL 0 #
|
ulonglong bigint(13) unsigned NULL NO MUL 0 #
|
||||||
time_stamp timestamp NULL NO CURRENT_TIMESTAMP #
|
time_stamp timestamp NULL NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP #
|
||||||
date_field char(10) latin1_swedish_ci YES NULL #
|
date_field char(10) latin1_swedish_ci YES NULL #
|
||||||
time_field time NULL YES NULL #
|
time_field time NULL YES NULL #
|
||||||
date_time datetime NULL YES NULL #
|
date_time datetime NULL YES NULL #
|
||||||
|
@ -251,7 +251,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
show columns from t1;
|
show columns from t1;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
t1 timestamp NO 2003-01-01 00:00:00
|
t1 timestamp NO 2003-01-01 00:00:00 on update CURRENT_TIMESTAMP
|
||||||
t2 datetime YES NULL
|
t2 datetime YES NULL
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (t1 timestamp default now() on update now(), t2 datetime);
|
create table t1 (t1 timestamp default now() on update now(), t2 datetime);
|
||||||
@ -276,7 +276,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
show columns from t1;
|
show columns from t1;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
t1 timestamp NO CURRENT_TIMESTAMP
|
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
t2 datetime YES NULL
|
t2 datetime YES NULL
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (t1 timestamp, t2 datetime, t3 timestamp);
|
create table t1 (t1 timestamp, t2 datetime, t3 timestamp);
|
||||||
@ -302,7 +302,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
show columns from t1;
|
show columns from t1;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
t1 timestamp NO CURRENT_TIMESTAMP
|
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
t2 datetime YES NULL
|
t2 datetime YES NULL
|
||||||
t3 timestamp NO 0000-00-00 00:00:00
|
t3 timestamp NO 0000-00-00 00:00:00
|
||||||
drop table t1;
|
drop table t1;
|
||||||
@ -328,7 +328,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
show columns from t1;
|
show columns from t1;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
t1 timestamp NO CURRENT_TIMESTAMP
|
t1 timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
|
||||||
t2 datetime YES NULL
|
t2 datetime YES NULL
|
||||||
truncate table t1;
|
truncate table t1;
|
||||||
insert into t1 values ('2004-04-01 00:00:00', '2004-04-01 00:00:00');
|
insert into t1 values ('2004-04-01 00:00:00', '2004-04-01 00:00:00');
|
||||||
|
@ -11,7 +11,7 @@ RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
|
|||||||
CREATE AGGREGATE FUNCTION avgcost
|
CREATE AGGREGATE FUNCTION avgcost
|
||||||
RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
|
RETURNS REAL SONAME "UDF_EXAMPLE_LIB";
|
||||||
select myfunc_double();
|
select myfunc_double();
|
||||||
ERROR HY000: myfunc_double must have at least one argument
|
ERROR HY000: Can't initialize function 'myfunc_double'; myfunc_double must have at least one argument
|
||||||
select myfunc_double(1);
|
select myfunc_double(1);
|
||||||
myfunc_double(1)
|
myfunc_double(1)
|
||||||
49.00
|
49.00
|
||||||
@ -24,26 +24,26 @@ select myfunc_int();
|
|||||||
myfunc_int()
|
myfunc_int()
|
||||||
0
|
0
|
||||||
select lookup();
|
select lookup();
|
||||||
ERROR HY000: Wrong arguments to lookup; Use the source
|
ERROR HY000: Can't initialize function 'lookup'; Wrong arguments to lookup; Use the source
|
||||||
select lookup("127.0.0.1");
|
select lookup("127.0.0.1");
|
||||||
lookup("127.0.0.1")
|
lookup("127.0.0.1")
|
||||||
127.0.0.1
|
127.0.0.1
|
||||||
select lookup(127,0,0,1);
|
select lookup(127,0,0,1);
|
||||||
ERROR HY000: Wrong arguments to lookup; Use the source
|
ERROR HY000: Can't initialize function 'lookup'; Wrong arguments to lookup; Use the source
|
||||||
select lookup("localhost");
|
select lookup("localhost");
|
||||||
lookup("localhost")
|
lookup("localhost")
|
||||||
127.0.0.1
|
127.0.0.1
|
||||||
select reverse_lookup();
|
select reverse_lookup();
|
||||||
ERROR HY000: Wrong number of arguments to reverse_lookup; Use the source
|
ERROR HY000: Can't initialize function 'reverse_lookup'; Wrong number of arguments to reverse_lookup; Use the source
|
||||||
select reverse_lookup("127.0.0.1");
|
select reverse_lookup("127.0.0.1");
|
||||||
select reverse_lookup(127,0,0,1);
|
select reverse_lookup(127,0,0,1);
|
||||||
select reverse_lookup("localhost");
|
select reverse_lookup("localhost");
|
||||||
reverse_lookup("localhost")
|
reverse_lookup("localhost")
|
||||||
NULL
|
NULL
|
||||||
select avgcost();
|
select avgcost();
|
||||||
ERROR HY000: wrong number of arguments: AVGCOST() requires two arguments
|
ERROR HY000: Can't initialize function 'avgcost'; wrong number of arguments: AVGCOST() requires two arguments
|
||||||
select avgcost(100,23.76);
|
select avgcost(100,23.76);
|
||||||
ERROR HY000: wrong argument type: AVGCOST() requires an INT and a REAL
|
ERROR HY000: Can't initialize function 'avgcost'; wrong argument type: AVGCOST() requires an INT and a REAL
|
||||||
create table t1(sum int, price float(24));
|
create table t1(sum int, price float(24));
|
||||||
insert into t1 values(100, 50.00), (100, 100.00);
|
insert into t1 values(100, 50.00), (100, 100.00);
|
||||||
select avgcost(sum, price) from t1;
|
select avgcost(sum, price) from t1;
|
||||||
|
@ -647,32 +647,32 @@ select extractValue('<a>a','/a');
|
|||||||
extractValue('<a>a','/a')
|
extractValue('<a>a','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 5: unexpected END-OF-INPUT'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 5: unexpected END-OF-INPUT'
|
||||||
select extractValue('<a>a<','/a');
|
select extractValue('<a>a<','/a');
|
||||||
extractValue('<a>a<','/a')
|
extractValue('<a>a<','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 6: END-OF-INPUT unexpected (ident or '/' wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 6: END-OF-INPUT unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<a>a</','/a');
|
select extractValue('<a>a</','/a');
|
||||||
extractValue('<a>a</','/a')
|
extractValue('<a>a</','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 7: END-OF-INPUT unexpected (ident wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 7: END-OF-INPUT unexpected (ident wanted)'
|
||||||
select extractValue('<a>a</a','/a');
|
select extractValue('<a>a</a','/a');
|
||||||
extractValue('<a>a</a','/a')
|
extractValue('<a>a</a','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 8: END-OF-INPUT unexpected ('>' wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 8: END-OF-INPUT unexpected ('>' wanted)'
|
||||||
select extractValue('<a>a</a></b>','/a');
|
select extractValue('<a>a</a></b>','/a');
|
||||||
extractValue('<a>a</a></b>','/a')
|
extractValue('<a>a</a></b>','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 12: '</b>' unexpected (END-OF-INPUT wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 12: '</b>' unexpected (END-OF-INPUT wanted)'
|
||||||
select extractValue('<a b=>a</a>','/a');
|
select extractValue('<a b=>a</a>','/a');
|
||||||
extractValue('<a b=>a</a>','/a')
|
extractValue('<a b=>a</a>','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 7: '>' unexpected (ident or string wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 7: '>' unexpected (ident or string wanted)'
|
||||||
select extractValue('<e>1</e>','position()');
|
select extractValue('<e>1</e>','position()');
|
||||||
ERROR HY000: XPATH syntax error: ''
|
ERROR HY000: XPATH syntax error: ''
|
||||||
select extractValue('<e>1</e>','last()');
|
select extractValue('<e>1</e>','last()');
|
||||||
@ -723,17 +723,17 @@ select extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*
|
|||||||
extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*')
|
extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 13: unknown token unexpected (ident or '/' wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 13: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<.>test</.>','//*');
|
select extractValue('<.>test</.>','//*');
|
||||||
extractValue('<.>test</.>','//*')
|
extractValue('<.>test</.>','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<->test</->','//*');
|
select extractValue('<->test</->','//*');
|
||||||
extractValue('<->test</->','//*')
|
extractValue('<->test</->','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1524 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<:>test</:>','//*');
|
select extractValue('<:>test</:>','//*');
|
||||||
extractValue('<:>test</:>','//*')
|
extractValue('<:>test</:>','//*')
|
||||||
test
|
test
|
||||||
|
@ -2268,7 +2268,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -2567,7 +2567,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -2598,7 +2598,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -2617,12 +2617,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -2675,10 +2675,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -2693,7 +2693,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -2703,23 +2703,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -3031,7 +3031,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -3141,7 +3141,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@ -3201,8 +3201,16 @@ NULL mysql user 0 mysql PRIMARY 2 User A 3 NULL NULL BTREE
|
|||||||
select * from views;
|
select * from views;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from user_privileges order by grantee, privilege_type;
|
select * from user_privileges order by grantee, privilege_type;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'127.0.0.1' NULL ALTER YES
|
'root'@'127.0.0.1' NULL ALTER YES
|
||||||
@ -5528,8 +5536,16 @@ NULL mysql columns_priv 0 mysql PRIMARY 5 Column_name A 0 NULL NULL BTREE
|
|||||||
select * from information_schema.views limit 0, 5;
|
select * from information_schema.views limit 0, 5;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from information_schema.user_privileges limit 0, 5;
|
select * from information_schema.user_privileges limit 0, 5;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'localhost' NULL SELECT YES
|
'root'@'localhost' NULL SELECT YES
|
||||||
@ -5582,10 +5598,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@ -8542,7 +8558,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -8671,7 +8686,7 @@ COLUMNS CHARACTER_SET_NAME varchar(64)
|
|||||||
COLUMNS COLLATION_NAME varchar(64)
|
COLUMNS COLLATION_NAME varchar(64)
|
||||||
COLUMNS COLUMN_TYPE longtext
|
COLUMNS COLUMN_TYPE longtext
|
||||||
COLUMNS COLUMN_KEY varchar(3)
|
COLUMNS COLUMN_KEY varchar(3)
|
||||||
COLUMNS EXTRA varchar(20)
|
COLUMNS EXTRA varchar(27)
|
||||||
COLUMNS PRIVILEGES varchar(80)
|
COLUMNS PRIVILEGES varchar(80)
|
||||||
COLUMNS COLUMN_COMMENT varchar(255)
|
COLUMNS COLUMN_COMMENT varchar(255)
|
||||||
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
||||||
@ -9324,7 +9339,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@ -9690,7 +9704,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 Yes 8
|
utf8_hungarian_ci utf8 210 Yes 8
|
||||||
utf8_general_cs utf8 254 Yes 1
|
|
||||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@ -9854,7 +9867,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -10092,7 +10104,7 @@ CHARACTER_SET_NAME varchar(64) YES NULL
|
|||||||
COLLATION_NAME varchar(64) YES NULL
|
COLLATION_NAME varchar(64) YES NULL
|
||||||
COLUMN_TYPE longtext NO NULL
|
COLUMN_TYPE longtext NO NULL
|
||||||
COLUMN_KEY varchar(3) NO
|
COLUMN_KEY varchar(3) NO
|
||||||
EXTRA varchar(20) NO
|
EXTRA varchar(27) NO
|
||||||
PRIVILEGES varchar(80) NO
|
PRIVILEGES varchar(80) NO
|
||||||
COLUMN_COMMENT varchar(255) NO
|
COLUMN_COMMENT varchar(255) NO
|
||||||
SHOW CREATE TABLE columns;
|
SHOW CREATE TABLE columns;
|
||||||
@ -10114,7 +10126,7 @@ COLUMNS CREATE TEMPORARY TABLE `COLUMNS` (
|
|||||||
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
||||||
`COLUMN_TYPE` longtext NOT NULL,
|
`COLUMN_TYPE` longtext NOT NULL,
|
||||||
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
||||||
`EXTRA` varchar(20) NOT NULL DEFAULT '',
|
`EXTRA` varchar(27) NOT NULL DEFAULT '',
|
||||||
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
||||||
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
@ -10145,7 +10157,7 @@ NULL information_schema columns CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema columns EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema columns EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
|
|
||||||
@ -10200,7 +10212,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -10474,7 +10486,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -10505,7 +10517,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -10524,12 +10536,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -10582,10 +10594,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -10600,7 +10612,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -10610,23 +10622,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -10938,7 +10950,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -11042,7 +11054,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -11567,7 +11579,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -11614,7 +11626,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -12139,7 +12151,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -12284,7 +12296,7 @@ NULL information_schema COLUMNS NUMERIC_SCALE bigint NULL NULL NULL NULL bigint(
|
|||||||
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||||
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||||
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||||
3.0000 information_schema COLUMNS EXTRA varchar 20 60 utf8 utf8_general_ci varchar(20)
|
3.0000 information_schema COLUMNS EXTRA varchar 27 81 utf8 utf8_general_ci varchar(27)
|
||||||
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
||||||
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
||||||
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
||||||
@ -12666,7 +12678,7 @@ NULL mysql ndb_binlog_index schemaops bigint NULL NULL NULL NULL bigint(20) unsi
|
|||||||
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
||||||
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
||||||
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
||||||
3.0000 mysql proc returns char 64 192 utf8 utf8_general_ci char(64)
|
1.0000 mysql proc returns longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
||||||
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
||||||
|
@ -2266,7 +2266,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -2565,7 +2565,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -2596,7 +2596,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -2615,12 +2615,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -2673,10 +2673,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -2691,7 +2691,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -2701,23 +2701,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -3015,7 +3015,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -3124,7 +3124,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@ -3184,8 +3184,16 @@ NULL mysql user 0 mysql PRIMARY 2 User A 3 NULL NULL BTREE
|
|||||||
select * from views;
|
select * from views;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from user_privileges order by grantee, privilege_type;
|
select * from user_privileges order by grantee, privilege_type;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'127.0.0.1' NULL ALTER YES
|
'root'@'127.0.0.1' NULL ALTER YES
|
||||||
@ -5511,8 +5519,16 @@ NULL mysql columns_priv 0 mysql PRIMARY 5 Column_name A 0 NULL NULL BTREE
|
|||||||
select * from information_schema.views limit 0, 5;
|
select * from information_schema.views limit 0, 5;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from information_schema.user_privileges limit 0, 5;
|
select * from information_schema.user_privileges limit 0, 5;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'localhost' NULL SELECT YES
|
'root'@'localhost' NULL SELECT YES
|
||||||
@ -5565,10 +5581,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@ -8525,7 +8541,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -8654,7 +8669,7 @@ COLUMNS CHARACTER_SET_NAME varchar(64)
|
|||||||
COLUMNS COLLATION_NAME varchar(64)
|
COLUMNS COLLATION_NAME varchar(64)
|
||||||
COLUMNS COLUMN_TYPE longtext
|
COLUMNS COLUMN_TYPE longtext
|
||||||
COLUMNS COLUMN_KEY varchar(3)
|
COLUMNS COLUMN_KEY varchar(3)
|
||||||
COLUMNS EXTRA varchar(20)
|
COLUMNS EXTRA varchar(27)
|
||||||
COLUMNS PRIVILEGES varchar(80)
|
COLUMNS PRIVILEGES varchar(80)
|
||||||
COLUMNS COLUMN_COMMENT varchar(255)
|
COLUMNS COLUMN_COMMENT varchar(255)
|
||||||
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
||||||
@ -9292,7 +9307,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@ -9658,7 +9672,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 Yes 8
|
utf8_hungarian_ci utf8 210 Yes 8
|
||||||
utf8_general_cs utf8 254 Yes 1
|
|
||||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@ -9822,7 +9835,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -10060,7 +10072,7 @@ CHARACTER_SET_NAME varchar(64) YES NULL
|
|||||||
COLLATION_NAME varchar(64) YES NULL
|
COLLATION_NAME varchar(64) YES NULL
|
||||||
COLUMN_TYPE longtext NO NULL
|
COLUMN_TYPE longtext NO NULL
|
||||||
COLUMN_KEY varchar(3) NO
|
COLUMN_KEY varchar(3) NO
|
||||||
EXTRA varchar(20) NO
|
EXTRA varchar(27) NO
|
||||||
PRIVILEGES varchar(80) NO
|
PRIVILEGES varchar(80) NO
|
||||||
COLUMN_COMMENT varchar(255) NO
|
COLUMN_COMMENT varchar(255) NO
|
||||||
SHOW CREATE TABLE columns;
|
SHOW CREATE TABLE columns;
|
||||||
@ -10082,7 +10094,7 @@ COLUMNS CREATE TEMPORARY TABLE `COLUMNS` (
|
|||||||
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
||||||
`COLUMN_TYPE` longtext NOT NULL,
|
`COLUMN_TYPE` longtext NOT NULL,
|
||||||
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
||||||
`EXTRA` varchar(20) NOT NULL DEFAULT '',
|
`EXTRA` varchar(27) NOT NULL DEFAULT '',
|
||||||
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
||||||
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
@ -10113,7 +10125,7 @@ NULL information_schema columns CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema columns EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema columns EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
|
|
||||||
@ -10168,7 +10180,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -10442,7 +10454,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -10473,7 +10485,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -10492,12 +10504,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -10550,10 +10562,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -10568,7 +10580,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -10578,23 +10590,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -10892,7 +10904,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -10995,7 +11007,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -11506,7 +11518,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -11552,7 +11564,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -12063,7 +12075,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -12197,7 +12209,7 @@ NULL information_schema COLUMNS NUMERIC_SCALE bigint NULL NULL NULL NULL bigint(
|
|||||||
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||||
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||||
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||||
3.0000 information_schema COLUMNS EXTRA varchar 20 60 utf8 utf8_general_ci varchar(20)
|
3.0000 information_schema COLUMNS EXTRA varchar 27 81 utf8 utf8_general_ci varchar(27)
|
||||||
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
||||||
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
||||||
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
||||||
@ -12579,7 +12591,7 @@ NULL mysql ndb_binlog_index schemaops bigint NULL NULL NULL NULL bigint(20) unsi
|
|||||||
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
||||||
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
||||||
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
||||||
3.0000 mysql proc returns char 64 192 utf8 utf8_general_ci char(64)
|
1.0000 mysql proc returns longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
||||||
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
||||||
|
@ -2296,7 +2296,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -2595,7 +2595,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -2626,7 +2626,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -2645,12 +2645,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -2703,10 +2703,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -2721,7 +2721,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -2731,23 +2731,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -3067,7 +3067,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -3194,7 +3194,7 @@ cp932 cp932_japanese_ci SJIS for Windows Japanese 2
|
|||||||
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
eucjpms eucjpms_japanese_ci UJIS for Windows Japanese 3
|
||||||
select sum(id) from collations;
|
select sum(id) from collations;
|
||||||
sum(id)
|
sum(id)
|
||||||
11094
|
10840
|
||||||
select collation_name, character_set_name into @x,@y
|
select collation_name, character_set_name into @x,@y
|
||||||
from collation_character_set_applicability limit 1;
|
from collation_character_set_applicability limit 1;
|
||||||
select @x, @y;
|
select @x, @y;
|
||||||
@ -3254,8 +3254,16 @@ NULL mysql user 0 mysql PRIMARY 2 User A 3 NULL NULL BTREE
|
|||||||
select * from views;
|
select * from views;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from user_privileges order by grantee, privilege_type;
|
select * from user_privileges order by grantee, privilege_type;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'127.0.0.1' NULL ALTER YES
|
'root'@'127.0.0.1' NULL ALTER YES
|
||||||
@ -5581,8 +5589,16 @@ NULL mysql columns_priv 0 mysql PRIMARY 5 Column_name A 0 NULL NULL BTREE
|
|||||||
select * from information_schema.views limit 0, 5;
|
select * from information_schema.views limit 0, 5;
|
||||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION
|
||||||
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict v1 SELECT * FROM information_schema.tables NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
NULL db_datadict vu SELECT DISTINCT u, NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
NULL db_datadict vu SELECT DISTINCT u,
|
||||||
NULL db_datadict vu1 SELECT grantee AS u NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3 )
|
||||||
|
AS server,
|
||||||
|
SUBSTRING( u, LENGTH(SUBSTRING_INDEX(u,'@',1))+3,
|
||||||
|
LENGTH( SUBSTRING( u,
|
||||||
|
LENGTH( SUBSTRING_INDEX(u, '@',1)) +3 )) - 1 )
|
||||||
|
AS Server_Clean
|
||||||
|
FROM db_datadict.vu1 NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
|
NULL db_datadict vu1 SELECT grantee AS u
|
||||||
|
FROM information_schema.user_privileges NONE NO root@localhost DEFINER latin1 latin1_swedish_ci
|
||||||
select * from information_schema.user_privileges limit 0, 5;
|
select * from information_schema.user_privileges limit 0, 5;
|
||||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||||
'root'@'localhost' NULL SELECT YES
|
'root'@'localhost' NULL SELECT YES
|
||||||
@ -5635,10 +5651,10 @@ COUNT(*)
|
|||||||
36
|
36
|
||||||
SELECT COUNT(*) FROM information_schema. collations ;
|
SELECT COUNT(*) FROM information_schema. collations ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
128
|
127
|
||||||
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
SELECT COUNT(*) FROM information_schema. collation_character_set_applicability ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
129
|
128
|
||||||
SELECT COUNT(*) FROM information_schema. routines ;
|
SELECT COUNT(*) FROM information_schema. routines ;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
1
|
1
|
||||||
@ -8595,7 +8611,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -8724,7 +8739,7 @@ COLUMNS CHARACTER_SET_NAME varchar(64)
|
|||||||
COLUMNS COLLATION_NAME varchar(64)
|
COLUMNS COLLATION_NAME varchar(64)
|
||||||
COLUMNS COLUMN_TYPE longtext
|
COLUMNS COLUMN_TYPE longtext
|
||||||
COLUMNS COLUMN_KEY varchar(3)
|
COLUMNS COLUMN_KEY varchar(3)
|
||||||
COLUMNS EXTRA varchar(20)
|
COLUMNS EXTRA varchar(27)
|
||||||
COLUMNS PRIVILEGES varchar(80)
|
COLUMNS PRIVILEGES varchar(80)
|
||||||
COLUMNS COLUMN_COMMENT varchar(255)
|
COLUMNS COLUMN_COMMENT varchar(255)
|
||||||
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
COLUMN_PRIVILEGES GRANTEE varchar(81)
|
||||||
@ -9394,7 +9409,6 @@ utf8_roman_ci
|
|||||||
utf8_persian_ci
|
utf8_persian_ci
|
||||||
utf8_esperanto_ci
|
utf8_esperanto_ci
|
||||||
utf8_hungarian_ci
|
utf8_hungarian_ci
|
||||||
utf8_general_cs
|
|
||||||
ucs2_general_ci
|
ucs2_general_ci
|
||||||
ucs2_bin
|
ucs2_bin
|
||||||
ucs2_unicode_ci
|
ucs2_unicode_ci
|
||||||
@ -9760,7 +9774,6 @@ utf8_roman_ci utf8 207 Yes 8
|
|||||||
utf8_persian_ci utf8 208 Yes 8
|
utf8_persian_ci utf8 208 Yes 8
|
||||||
utf8_esperanto_ci utf8 209 Yes 8
|
utf8_esperanto_ci utf8 209 Yes 8
|
||||||
utf8_hungarian_ci utf8 210 Yes 8
|
utf8_hungarian_ci utf8 210 Yes 8
|
||||||
utf8_general_cs utf8 254 Yes 1
|
|
||||||
ucs2_general_ci ucs2 35 Yes Yes 1
|
ucs2_general_ci ucs2 35 Yes Yes 1
|
||||||
ucs2_bin ucs2 90 Yes 1
|
ucs2_bin ucs2 90 Yes 1
|
||||||
ucs2_unicode_ci ucs2 128 Yes 8
|
ucs2_unicode_ci ucs2 128 Yes 8
|
||||||
@ -9924,7 +9937,6 @@ utf8_roman_ci utf8
|
|||||||
utf8_persian_ci utf8
|
utf8_persian_ci utf8
|
||||||
utf8_esperanto_ci utf8
|
utf8_esperanto_ci utf8
|
||||||
utf8_hungarian_ci utf8
|
utf8_hungarian_ci utf8
|
||||||
utf8_general_cs utf8
|
|
||||||
ucs2_general_ci ucs2
|
ucs2_general_ci ucs2
|
||||||
ucs2_bin ucs2
|
ucs2_bin ucs2
|
||||||
ucs2_unicode_ci ucs2
|
ucs2_unicode_ci ucs2
|
||||||
@ -10162,7 +10174,7 @@ CHARACTER_SET_NAME varchar(64) YES NULL
|
|||||||
COLLATION_NAME varchar(64) YES NULL
|
COLLATION_NAME varchar(64) YES NULL
|
||||||
COLUMN_TYPE longtext NO NULL
|
COLUMN_TYPE longtext NO NULL
|
||||||
COLUMN_KEY varchar(3) NO
|
COLUMN_KEY varchar(3) NO
|
||||||
EXTRA varchar(20) NO
|
EXTRA varchar(27) NO
|
||||||
PRIVILEGES varchar(80) NO
|
PRIVILEGES varchar(80) NO
|
||||||
COLUMN_COMMENT varchar(255) NO
|
COLUMN_COMMENT varchar(255) NO
|
||||||
SHOW CREATE TABLE columns;
|
SHOW CREATE TABLE columns;
|
||||||
@ -10184,7 +10196,7 @@ COLUMNS CREATE TEMPORARY TABLE `COLUMNS` (
|
|||||||
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
`COLLATION_NAME` varchar(64) DEFAULT NULL,
|
||||||
`COLUMN_TYPE` longtext NOT NULL,
|
`COLUMN_TYPE` longtext NOT NULL,
|
||||||
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
`COLUMN_KEY` varchar(3) NOT NULL DEFAULT '',
|
||||||
`EXTRA` varchar(20) NOT NULL DEFAULT '',
|
`EXTRA` varchar(27) NOT NULL DEFAULT '',
|
||||||
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
`PRIVILEGES` varchar(80) NOT NULL DEFAULT '',
|
||||||
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
`COLUMN_COMMENT` varchar(255) NOT NULL DEFAULT ''
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
@ -10215,7 +10227,7 @@ NULL information_schema columns CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema columns COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema columns COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema columns COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema columns EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema columns EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema columns PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema columns COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
|
|
||||||
@ -10270,7 +10282,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -10544,7 +10556,7 @@ NULL mysql columns_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PR
|
|||||||
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql columns_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql columns_priv Column_name 5 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql columns_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql columns_priv Column_priv 7 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql db Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql db Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
@ -10575,7 +10587,7 @@ NULL mysql event definer 4 NO char 77 231 NULL NULL utf8 utf8_bin char(77) se
|
|||||||
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event execute_at 5 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql event interval_value 6 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
NULL mysql event interval_field 7 NULL YES enum 18 54 NULL NULL utf8 utf8_general_ci enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') select,insert,update,references
|
||||||
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event created 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql event modified 9 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event last_executed 10 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL mysql event starts 11 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
@ -10594,12 +10606,12 @@ NULL mysql func name 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI sel
|
|||||||
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
NULL mysql func ret 2 0 NO tinyint NULL NULL 3 0 NULL NULL tinyint(1) select,insert,update,references
|
||||||
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
NULL mysql func dl 3 NO char 128 384 NULL NULL utf8 utf8_bin char(128) select,insert,update,references
|
||||||
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
NULL mysql func type 4 NULL NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('function','aggregate') select,insert,update,references
|
||||||
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql general_log event_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql general_log user_host 2 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql general_log thread_id 3 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log thread_id 3 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log server_id 4 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql general_log server_id 4 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql general_log command_type 5 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
NULL mysql general_log command_type 5 NULL NO varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select,insert,update,references
|
||||||
NULL mysql general_log argument 6 NULL YES mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql general_log argument 6 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL smallint(5) unsigned select,insert,update,references
|
||||||
@ -10652,10 +10664,10 @@ NULL mysql proc sql_data_access 6 CONTAINS_SQL NO enum 17 51 NULL NULL utf8 utf8
|
|||||||
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
NULL mysql proc is_deterministic 7 NO NO enum 3 9 NULL NULL utf8 utf8_general_ci enum('YES','NO') select,insert,update,references
|
||||||
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
NULL mysql proc security_type 8 DEFINER NO enum 7 21 NULL NULL utf8 utf8_general_ci enum('INVOKER','DEFINER') select,insert,update,references
|
||||||
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
NULL mysql proc param_list 9 NULL NO blob 65535 65535 NULL NULL NULL NULL blob select,insert,update,references
|
||||||
NULL mysql proc returns 10 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql proc returns 10 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
NULL mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NULL longblob select,insert,update,references
|
||||||
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
NULL mysql proc definer 12 NO char 77 231 NULL NULL utf8 utf8_bin char(77) select,insert,update,references
|
||||||
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql proc modified 14 0000-00-00 00:00:00 NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
||||||
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
NULL mysql proc sql_mode 15 NO set 431 1293 NULL NULL utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE') select,insert,update,references
|
||||||
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
NULL mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) select,insert,update,references
|
||||||
@ -10670,7 +10682,7 @@ NULL mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin cha
|
|||||||
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
NULL mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI select,insert,update,references
|
||||||
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
NULL mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') select,insert,update,references
|
||||||
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
NULL mysql servers Server_name 1 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI select,insert,update,references
|
||||||
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Host 2 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Db 3 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
@ -10680,23 +10692,23 @@ NULL mysql servers Port 6 0 NO int NULL NULL 10 0 NULL NULL int(4) select,inse
|
|||||||
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Socket 7 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Wrapper 8 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
NULL mysql servers Owner 9 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) select,insert,update,references
|
||||||
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql slow_log start_time 1 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log query_time 3 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL mysql slow_log lock_time 4 NULL NO time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_sent 5 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log rows_examined 6 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log db 7 NULL YES varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
NULL mysql slow_log db 7 NULL NO varchar 4096 12288 NULL NULL utf8 utf8_general_ci varchar(4096) select,insert,update,references
|
||||||
NULL mysql slow_log last_insert_id 8 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log last_insert_id 8 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log insert_id 9 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log insert_id 9 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log server_id 10 NULL YES int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
NULL mysql slow_log server_id 10 NULL NO int NULL NULL 10 0 NULL NULL int(11) select,insert,update,references
|
||||||
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
NULL mysql slow_log sql_text 11 NULL NO mediumtext 16777215 16777215 NULL NULL utf8 utf8_general_ci mediumtext select,insert,update,references
|
||||||
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
NULL mysql tables_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
NULL mysql tables_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
NULL mysql tables_priv Table_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI select,insert,update,references
|
||||||
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
NULL mysql tables_priv Grantor 5 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL select,insert,update,references
|
||||||
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL mysql tables_priv Timestamp 6 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
NULL mysql tables_priv Table_priv 7 NO set 98 294 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') select,insert,update,references
|
||||||
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
NULL mysql tables_priv Column_priv 8 NO set 31 93 NULL NULL utf8 utf8_general_ci set('Select','Insert','Update','References') select,insert,update,references
|
||||||
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
NULL mysql time_zone Time_zone_id 1 NULL NO int NULL NULL 10 0 NULL NULL int(10) unsigned PRI auto_increment select,insert,update,references
|
||||||
@ -11016,7 +11028,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -11137,7 +11149,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -11670,7 +11682,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -11726,7 +11738,7 @@ NULL information_schema COLUMNS CHARACTER_SET_NAME 13 NULL YES varchar 64 192 NU
|
|||||||
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
NULL information_schema COLUMNS COLLATION_NAME 14 NULL YES varchar 64 192 NULL NULL utf8 utf8_general_ci varchar(64) select
|
||||||
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
NULL information_schema COLUMNS COLUMN_TYPE 15 NULL NO longtext 4294967295 4294967295 NULL NULL utf8 utf8_general_ci longtext select
|
||||||
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
NULL information_schema COLUMNS COLUMN_KEY 16 NO varchar 3 9 NULL NULL utf8 utf8_general_ci varchar(3) select
|
||||||
NULL information_schema COLUMNS EXTRA 17 NO varchar 20 60 NULL NULL utf8 utf8_general_ci varchar(20) select
|
NULL information_schema COLUMNS EXTRA 17 NO varchar 27 81 NULL NULL utf8 utf8_general_ci varchar(27) select
|
||||||
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
NULL information_schema COLUMNS PRIVILEGES 18 NO varchar 80 240 NULL NULL utf8 utf8_general_ci varchar(80) select
|
||||||
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
NULL information_schema COLUMNS COLUMN_COMMENT 19 NO varchar 255 765 NULL NULL utf8 utf8_general_ci varchar(255) select
|
||||||
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
NULL information_schema COLUMN_PRIVILEGES GRANTEE 1 NO varchar 81 243 NULL NULL utf8 utf8_general_ci varchar(81) select
|
||||||
@ -12259,7 +12271,7 @@ NULL test tb4 f217 42 NULL YES double unsigned zerofill NULL NULL 22 NULL NULL N
|
|||||||
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
NULL test tb4 f218 43 NULL YES date NULL NULL NULL NULL NULL NULL date select,insert,update,references
|
||||||
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
NULL test tb4 f219 44 NULL YES time NULL NULL NULL NULL NULL NULL time select,insert,update,references
|
||||||
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
NULL test tb4 f220 45 NULL YES datetime NULL NULL NULL NULL NULL NULL datetime select,insert,update,references
|
||||||
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp select,insert,update,references
|
NULL test tb4 f221 46 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP select,insert,update,references
|
||||||
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f222 47 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f223 48 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
NULL test tb4 f224 49 NULL YES year NULL NULL NULL NULL NULL NULL year(4) select,insert,update,references
|
||||||
@ -12411,7 +12423,7 @@ NULL information_schema COLUMNS NUMERIC_SCALE bigint NULL NULL NULL NULL bigint(
|
|||||||
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
3.0000 information_schema COLUMNS COLLATION_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
|
||||||
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
1.0000 information_schema COLUMNS COLUMN_TYPE longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
|
||||||
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
3.0000 information_schema COLUMNS COLUMN_KEY varchar 3 9 utf8 utf8_general_ci varchar(3)
|
||||||
3.0000 information_schema COLUMNS EXTRA varchar 20 60 utf8 utf8_general_ci varchar(20)
|
3.0000 information_schema COLUMNS EXTRA varchar 27 81 utf8 utf8_general_ci varchar(27)
|
||||||
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
3.0000 information_schema COLUMNS PRIVILEGES varchar 80 240 utf8 utf8_general_ci varchar(80)
|
||||||
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
3.0000 information_schema COLUMNS COLUMN_COMMENT varchar 255 765 utf8 utf8_general_ci varchar(255)
|
||||||
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
3.0000 information_schema COLUMN_PRIVILEGES GRANTEE varchar 81 243 utf8 utf8_general_ci varchar(81)
|
||||||
@ -12793,7 +12805,7 @@ NULL mysql ndb_binlog_index schemaops bigint NULL NULL NULL NULL bigint(20) unsi
|
|||||||
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
3.0000 mysql proc is_deterministic enum 3 9 utf8 utf8_general_ci enum('YES','NO')
|
||||||
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
3.0000 mysql proc security_type enum 7 21 utf8 utf8_general_ci enum('INVOKER','DEFINER')
|
||||||
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
1.0000 mysql proc param_list blob 65535 65535 NULL NULL blob
|
||||||
3.0000 mysql proc returns char 64 192 utf8 utf8_general_ci char(64)
|
1.0000 mysql proc returns longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
1.0000 mysql proc body longblob 4294967295 4294967295 NULL NULL longblob
|
||||||
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
3.0000 mysql proc definer char 77 231 utf8 utf8_bin char(77)
|
||||||
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
|
||||||
|
@ -8,20 +8,20 @@ INITIAL_SIZE 16M
|
|||||||
UNDO_BUFFER_SIZE = 1M
|
UNDO_BUFFER_SIZE = 1M
|
||||||
ENGINE=MYISAM;
|
ENGINE=MYISAM;
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1477 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1478 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
ALTER LOGFILE GROUP lg1
|
ALTER LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile02.dat'
|
ADD UNDOFILE 'undofile02.dat'
|
||||||
INITIAL_SIZE = 4M
|
INITIAL_SIZE = 4M
|
||||||
ENGINE=XYZ;
|
ENGINE=XYZ;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1286 Unknown table engine 'XYZ'
|
Warning 1286 Unknown table engine 'XYZ'
|
||||||
Error 1477 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1478 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
CREATE TABLESPACE ts1
|
CREATE TABLESPACE ts1
|
||||||
ADD DATAFILE 'datafile.dat'
|
ADD DATAFILE 'datafile.dat'
|
||||||
USE LOGFILE GROUP lg1
|
USE LOGFILE GROUP lg1
|
||||||
INITIAL_SIZE 12M;
|
INITIAL_SIZE 12M;
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1477 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1478 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
set storage_engine=ndb;
|
set storage_engine=ndb;
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
|
@ -16,7 +16,7 @@ ERROR HY000: Failed to create LOGFILE GROUP
|
|||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 1514 'Currently there is a limit of one logfile group' from NDB
|
Error 1296 Got error 1514 'Currently there is a limit of one logfile group' from NDB
|
||||||
Error 1527 Failed to create LOGFILE GROUP
|
Error 1528 Failed to create LOGFILE GROUP
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
INITIAL_SIZE 1M
|
INITIAL_SIZE 1M
|
||||||
|
@ -463,7 +463,7 @@ drop table t1;
|
|||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1477 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1478 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
||||||
@ -1013,7 +1013,7 @@ drop table t1;
|
|||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1477 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1478 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
||||||
|
@ -8,7 +8,7 @@ ENGINE=NDB;
|
|||||||
ERROR HY000: Can't create table 'test.t1' (errno: 138)
|
ERROR HY000: Can't create table 'test.t1' (errno: 138)
|
||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1477 Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
|
Error 1478 Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
|
||||||
Error 1005 Can't create table 'test.t1' (errno: 138)
|
Error 1005 Can't create table 'test.t1' (errno: 138)
|
||||||
CREATE TABLE t1
|
CREATE TABLE t1
|
||||||
( a INT KEY,
|
( a INT KEY,
|
||||||
|
@ -11,7 +11,7 @@ ERROR HY000: Failed to create LOGFILE GROUP
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1527 Failed to create LOGFILE GROUP
|
Error 1528 Failed to create LOGFILE GROUP
|
||||||
create table t1 (a int key, b int unique, c int) engine ndb;
|
create table t1 (a int key, b int unique, c int) engine ndb;
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
@ -27,14 +27,14 @@ ERROR HY000: Failed to create TABLESPACE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1527 Failed to create TABLESPACE
|
Error 1528 Failed to create TABLESPACE
|
||||||
DROP LOGFILE GROUP lg1
|
DROP LOGFILE GROUP lg1
|
||||||
ENGINE =NDB;
|
ENGINE =NDB;
|
||||||
ERROR HY000: Failed to drop LOGFILE GROUP
|
ERROR HY000: Failed to drop LOGFILE GROUP
|
||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1528 Failed to drop LOGFILE GROUP
|
Error 1529 Failed to drop LOGFILE GROUP
|
||||||
CREATE TABLESPACE ts1
|
CREATE TABLESPACE ts1
|
||||||
ADD DATAFILE 'datafile.dat'
|
ADD DATAFILE 'datafile.dat'
|
||||||
USE LOGFILE GROUP lg1
|
USE LOGFILE GROUP lg1
|
||||||
@ -47,7 +47,7 @@ ERROR HY000: Failed to alter: DROP DATAFILE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1532 Failed to alter: DROP DATAFILE
|
Error 1533 Failed to alter: DROP DATAFILE
|
||||||
ALTER TABLESPACE ts1
|
ALTER TABLESPACE ts1
|
||||||
DROP DATAFILE 'datafile.dat'
|
DROP DATAFILE 'datafile.dat'
|
||||||
ENGINE NDB;
|
ENGINE NDB;
|
||||||
@ -57,7 +57,7 @@ ERROR HY000: Failed to drop TABLESPACE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1528 Failed to drop TABLESPACE
|
Error 1529 Failed to drop TABLESPACE
|
||||||
DROP TABLESPACE ts1
|
DROP TABLESPACE ts1
|
||||||
ENGINE NDB;
|
ENGINE NDB;
|
||||||
DROP LOGFILE GROUP lg1
|
DROP LOGFILE GROUP lg1
|
||||||
|
@ -63,7 +63,7 @@ def test t9 t9 c11 c11 246 9 6 Y 0 4 63
|
|||||||
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
def test t9 t9 c12 c12 246 10 6 Y 0 4 63
|
||||||
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
def test t9 t9 c13 c13 10 10 10 Y 128 0 63
|
||||||
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
def test t9 t9 c14 c14 12 19 19 Y 128 0 63
|
||||||
def test t9 t9 c15 c15 7 19 19 N 1249 0 63
|
def test t9 t9 c15 c15 7 19 19 N 9441 0 63
|
||||||
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
def test t9 t9 c16 c16 11 8 8 Y 128 0 63
|
||||||
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
def test t9 t9 c17 c17 13 4 4 Y 32864 0 63
|
||||||
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
def test t9 t9 c18 c18 1 4 1 Y 32768 0 63
|
||||||
|
@ -72,7 +72,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -90,7 +90,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@ -139,7 +139,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -157,7 +157,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -201,7 +201,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -219,7 +219,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -263,7 +263,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -281,7 +281,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -324,7 +324,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -342,7 +342,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@ -436,7 +436,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -454,7 +454,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -497,7 +497,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -515,7 +515,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -822,7 +822,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -840,7 +840,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -72,7 +72,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -90,7 +90,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@ -139,7 +139,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -157,7 +157,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -201,7 +201,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -219,7 +219,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -263,7 +263,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -281,7 +281,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -324,7 +324,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -342,7 +342,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@ -436,7 +436,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -454,7 +454,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -497,7 +497,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -515,7 +515,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -822,7 +822,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -840,7 +840,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -44,7 +44,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1589
|
Last_Errno 1590
|
||||||
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -62,7 +62,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1589
|
Last_SQL_Errno 1590
|
||||||
Last_SQL_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
Last_SQL_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -65,7 +65,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1592
|
Last_Errno 1593
|
||||||
Last_Error Fatal error: Not enough memory
|
Last_Error Fatal error: Not enough memory
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos 325
|
Exec_Master_Log_Pos 325
|
||||||
@ -83,7 +83,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1592
|
Last_SQL_Errno 1593
|
||||||
Last_SQL_Error Fatal error: Not enough memory
|
Last_SQL_Error Fatal error: Not enough memory
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -37,7 +37,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -55,7 +55,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -91,7 +91,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -109,7 +109,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -145,7 +145,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -163,7 +163,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -200,7 +200,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -218,7 +218,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -255,7 +255,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -273,7 +273,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -309,7 +309,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -327,7 +327,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -364,7 +364,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -382,7 +382,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -419,7 +419,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -437,7 +437,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -505,7 +505,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -523,7 +523,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -560,7 +560,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -578,7 +578,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -614,7 +614,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -632,7 +632,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -668,7 +668,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -686,7 +686,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@ -723,7 +723,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -741,7 +741,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
|
@ -214,7 +214,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -232,7 +232,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -257,7 +257,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -275,7 +275,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -300,7 +300,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -318,7 +318,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -214,7 +214,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -232,7 +232,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -257,7 +257,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -275,7 +275,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -300,7 +300,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -318,7 +318,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@ -182,19 +182,19 @@ CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
|
|||||||
affected rows: 0
|
affected rows: 0
|
||||||
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
|
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1591 Statement is not safe to log in statement format.
|
Warning 1592 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
|
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1591 Statement is not safe to log in statement format.
|
Warning 1592 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
|
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1591 Statement is not safe to log in statement format.
|
Warning 1592 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
|
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1591 Statement is not safe to log in statement format.
|
Warning 1592 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
SELECT * FROM t1 ORDER BY sum;
|
SELECT * FROM t1 ORDER BY sum;
|
||||||
sum price
|
sum price
|
||||||
|
@ -72,7 +72,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -90,7 +90,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@ -139,7 +139,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -157,7 +157,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -201,7 +201,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -219,7 +219,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -263,7 +263,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -281,7 +281,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -324,7 +324,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -342,7 +342,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@ -436,7 +436,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -454,7 +454,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -497,7 +497,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -515,7 +515,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@ -823,7 +823,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1534
|
Last_Errno 1535
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@ -841,7 +841,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1534
|
Last_SQL_Errno 1535
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
41
mysql-test/t/almost_full.test
Normal file
41
mysql-test/t/almost_full.test
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#
|
||||||
|
# Some special cases with empty tables
|
||||||
|
#
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
set global myisam_data_pointer_size=2;
|
||||||
|
CREATE TABLE t1 (a int auto_increment primary key not null, b longtext) ENGINE=MyISAM;
|
||||||
|
|
||||||
|
--disable_query_log
|
||||||
|
let $1= 303;
|
||||||
|
while ($1)
|
||||||
|
{
|
||||||
|
INSERT INTO t1 SET b=repeat('a',200);
|
||||||
|
dec $1;
|
||||||
|
}
|
||||||
|
--enable_query_log
|
||||||
|
|
||||||
|
DELETE FROM t1 WHERE a=1 or a=5;
|
||||||
|
|
||||||
|
--error 1114
|
||||||
|
INSERT INTO t1 SET b=repeat('a',600);
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
|
||||||
|
--error 1114
|
||||||
|
UPDATE t1 SET b=repeat('a', 800) where a=10;
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
|
||||||
|
INSERT INTO t1 SET b=repeat('a',400);
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
|
||||||
|
DELETE FROM t1 WHERE a=2 or a=6;
|
||||||
|
UPDATE t1 SET b=repeat('a', 600) where a=11;
|
||||||
|
CHECK TABLE t1 EXTENDED;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
set global myisam_data_pointer_size=default;
|
||||||
|
|
||||||
|
# End of 4.1 tests
|
@ -1567,3 +1567,25 @@ insert into t1 set a='';
|
|||||||
insert into t1 set a='a';
|
insert into t1 set a='a';
|
||||||
check table t1 extended;
|
check table t1 extended;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#31036 - Using order by with archive table crashes server
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1(a VARCHAR(510)) ENGINE = ARCHIVE;
|
||||||
|
|
||||||
|
let $bug31036=41;
|
||||||
|
--disable_query_log
|
||||||
|
while($bug31036)
|
||||||
|
{
|
||||||
|
INSERT INTO t1(a) VALUES (REPEAT('a', 510));
|
||||||
|
dec $bug31036;
|
||||||
|
}
|
||||||
|
--enable_query_log
|
||||||
|
INSERT INTO t1(a) VALUES ('');
|
||||||
|
|
||||||
|
--disable_result_log
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
--enable_result_log
|
||||||
|
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -246,4 +246,26 @@ INSERT INTO t1(d1) VALUES ('2007-07-19 08:30:00'), (NULL),
|
|||||||
SELECT cast(date(d1) as signed) FROM t1;
|
SELECT cast(date(d1) as signed) FROM t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #31990: MINUTE() and SECOND() return bogus results when used on a DATE
|
||||||
|
#
|
||||||
|
|
||||||
|
# Show that HH:MM:SS of a DATE are 0, and that it's the same for columns
|
||||||
|
# and typecasts (NULL in, NULL out).
|
||||||
|
CREATE TABLE t1 (f1 DATE);
|
||||||
|
INSERT INTO t1 VALUES ('2007-07-19'), (NULL);
|
||||||
|
SELECT HOUR(f1),
|
||||||
|
MINUTE(f1),
|
||||||
|
SECOND(f1) FROM t1;
|
||||||
|
SELECT HOUR(CAST('2007-07-19' AS DATE)),
|
||||||
|
MINUTE(CAST('2007-07-19' AS DATE)),
|
||||||
|
SECOND(CAST('2007-07-19' AS DATE));
|
||||||
|
SELECT HOUR(CAST(NULL AS DATE)),
|
||||||
|
MINUTE(CAST(NULL AS DATE)),
|
||||||
|
SECOND(CAST(NULL AS DATE));
|
||||||
|
SELECT HOUR(NULL),
|
||||||
|
MINUTE(NULL),
|
||||||
|
SECOND(NULL);
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
@ -547,6 +547,14 @@ select quote(name) from bug20536;
|
|||||||
|
|
||||||
drop table bug20536;
|
drop table bug20536;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#31159 - fulltext search on ucs2 column crashes server
|
||||||
|
#
|
||||||
|
CREATE TABLE t1(a TEXT CHARSET ucs2 COLLATE ucs2_unicode_ci);
|
||||||
|
INSERT INTO t1 VALUES('abcd');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('+abcd' IN BOOLEAN MODE);
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo End of 4.1 tests
|
--echo End of 4.1 tests
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -454,7 +454,8 @@ create event закачка on schedule every 10 hour do select get_lock("test_l
|
|||||||
--echo "Should have only 2 processes: the scheduler and the locked event"
|
--echo "Should have only 2 processes: the scheduler and the locked event"
|
||||||
let $wait_condition= select count(*) = 2 from information_schema.processlist
|
let $wait_condition= select count(*) = 2 from information_schema.processlist
|
||||||
where ( (state like 'User lock%' AND info like 'select get_lock%')
|
where ( (state like 'User lock%' AND info like 'select get_lock%')
|
||||||
OR (command='Daemon' AND user='event_scheduler'));
|
OR (command='Daemon' AND user='event_scheduler' AND
|
||||||
|
state = 'Waiting for next activation'));
|
||||||
--source include/wait_condition.inc
|
--source include/wait_condition.inc
|
||||||
|
|
||||||
select /*2*/ user, host, db, command, state, info
|
select /*2*/ user, host, db, command, state, info
|
||||||
|
@ -712,18 +712,6 @@ DROP TABLE event_log;
|
|||||||
#DROP DATABASE ev_db_1;
|
#DROP DATABASE ev_db_1;
|
||||||
SET GLOBAL event_scheduler = OFF;
|
SET GLOBAL event_scheduler = OFF;
|
||||||
|
|
||||||
#
|
|
||||||
# End of tests
|
|
||||||
#
|
|
||||||
|
|
||||||
let $wait_condition=
|
|
||||||
select count(*) = 0 from information_schema.processlist
|
|
||||||
where db='events_test' and command = 'Connect' and user=current_user();
|
|
||||||
--source include/wait_condition.inc
|
|
||||||
|
|
||||||
DROP DATABASE events_test;
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#28641 CREATE EVENT with '2038.01.18 03:00:00' let server crash.
|
# Bug#28641 CREATE EVENT with '2038.01.18 03:00:00' let server crash.
|
||||||
#
|
#
|
||||||
@ -737,3 +725,215 @@ CREATE EVENT bug28641 ON SCHEDULE AT '2038.01.18 03:00:00'
|
|||||||
DELIMITER ;|
|
DELIMITER ;|
|
||||||
SET GLOBAL event_scheduler= OFF;
|
SET GLOBAL event_scheduler= OFF;
|
||||||
DROP EVENT bug28641;
|
DROP EVENT bug28641;
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo #####################################################################
|
||||||
|
--echo #
|
||||||
|
--echo # BUG#31111: --read-only crashes MySQL (events fail to load).
|
||||||
|
--echo #
|
||||||
|
--echo #####################################################################
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--error 0,ER_CANNOT_USER
|
||||||
|
DROP USER mysqltest_u1@localhost;
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP EVENT IF EXISTS e1;
|
||||||
|
DROP EVENT IF EXISTS e2;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
# Check that an ordinary user can not create/update/drop events in the
|
||||||
|
# read-only mode.
|
||||||
|
|
||||||
|
GRANT EVENT ON *.* TO mysqltest_u1@localhost;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Connection: u1_con (mysqltest_u1@localhost/events_test).
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--connect(u1_con,localhost,mysqltest_u1,,events_test)
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--error ER_OPTION_PREVENTS_STATEMENT
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--error ER_OPTION_PREVENTS_STATEMENT
|
||||||
|
ALTER EVENT e1 COMMENT 'comment';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--error ER_OPTION_PREVENTS_STATEMENT
|
||||||
|
DROP EVENT e1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
# Check that the super user still can create/update/drop events.
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Connection: root_con (root@localhost/events_test).
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--connect(root_con,localhost,root,,events_test)
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT '2020-01-01 00:00:00' DO SET @a = 1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
ALTER EVENT e1 COMMENT 'comment';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
DROP EVENT e1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
#
|
||||||
|
# Switch to read-write mode; create test events under the user mysqltest_u1;
|
||||||
|
# switch back to read-only mode.
|
||||||
|
#
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 0;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Connection: u1_con (mysqltest_u1@localhost/test).
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--connection u1_con
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND DO SET @a = 1;
|
||||||
|
CREATE EVENT e2 ON SCHEDULE EVERY 1 SECOND DO SET @a = 1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
event_name,
|
||||||
|
last_executed IS NULL,
|
||||||
|
definer
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Connection: root_con (root@localhost/events_test).
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--connection root_con
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 1;
|
||||||
|
|
||||||
|
# Check that the event scheduler is able to update event.
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SET GLOBAL EVENT_SCHEDULER = ON;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo # Waiting for the event scheduler to execute and drop event e1...
|
||||||
|
|
||||||
|
let $wait_timeout = 2;
|
||||||
|
let $wait_condition =
|
||||||
|
SELECT COUNT(*) = 0
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test' AND event_name = 'e1';
|
||||||
|
--source include/wait_condition.inc
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo # Waiting for the event scheduler to execute and update event e2...
|
||||||
|
|
||||||
|
let $wait_condition =
|
||||||
|
SELECT last_executed IS NOT NULL
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test' AND event_name = 'e2';
|
||||||
|
--source include/wait_condition.inc
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SET GLOBAL EVENT_SCHEDULER = OFF;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
event_name,
|
||||||
|
last_executed IS NULL,
|
||||||
|
definer
|
||||||
|
FROM INFORMATION_SCHEMA.EVENTS
|
||||||
|
WHERE event_schema = 'events_test';
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--error ER_EVENT_DOES_NOT_EXIST
|
||||||
|
DROP EVENT e1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo # Cleanup.
|
||||||
|
--echo
|
||||||
|
|
||||||
|
DROP EVENT e2;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
SET GLOBAL READ_ONLY = 0;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # Connection: default
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
--disconnect u1_con
|
||||||
|
--disconnect root_con
|
||||||
|
--connection default
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
|
DROP USER mysqltest_u1@localhost;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
--echo #####################################################################
|
||||||
|
--echo #
|
||||||
|
--echo # End of BUG#31111.
|
||||||
|
--echo #
|
||||||
|
--echo #####################################################################
|
||||||
|
--echo
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
#
|
||||||
|
# End of tests
|
||||||
|
#
|
||||||
|
# !!! KEEP this section AT THE END of this file !!!
|
||||||
|
#
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
let $wait_condition=
|
||||||
|
select count(*) = 0 from information_schema.processlist
|
||||||
|
where db='events_test' and command = 'Connect' and user=current_user();
|
||||||
|
--source include/wait_condition.inc
|
||||||
|
|
||||||
|
DROP DATABASE events_test;
|
||||||
|
|
||||||
|
# THIS MUST BE THE LAST LINE in this file.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# if federated can utilise the servers table
|
# if federated can utilise the servers table
|
||||||
# should work with embedded server after mysqltest is fixed
|
# should work with embedded server after mysqltest is fixed
|
||||||
-- source include/not_embedded.inc
|
-- source include/not_embedded.inc
|
||||||
-- source include/federated.inc;
|
-- source include/federated.inc
|
||||||
-- source include/big_test.inc
|
-- source include/big_test.inc
|
||||||
|
|
||||||
connection slave;
|
connection slave;
|
||||||
@ -282,6 +282,18 @@ drop user guest_select@localhost;
|
|||||||
drop table federated.t1;
|
drop table federated.t1;
|
||||||
drop server 's1';
|
drop server 's1';
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#30671 - ALTER SERVER causes the server to crash
|
||||||
|
#
|
||||||
|
create server 's1' foreign data wrapper 'mysql' options (port 3306);
|
||||||
|
alter server 's1' options
|
||||||
|
(host 'localhost', database '', user '',
|
||||||
|
password '', socket '', owner '', port 3306);
|
||||||
|
# The next statement would crash unpatched server
|
||||||
|
alter server 's1' options
|
||||||
|
(host 'localhost', database 'database1', user '',
|
||||||
|
password '', socket '', owner '', port 3306);
|
||||||
|
drop server 's1';
|
||||||
|
|
||||||
--echo # End of 5.1 tests
|
--echo # End of 5.1 tests
|
||||||
|
|
||||||
|
@ -399,6 +399,14 @@ ALTER TABLE t1 DISABLE KEYS;
|
|||||||
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#11392 - fulltext search bug
|
||||||
|
#
|
||||||
|
CREATE TABLE t1(a TEXT);
|
||||||
|
INSERT INTO t1 VALUES(' aaaaa aaaa');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('"aaaa"' IN BOOLEAN MODE);
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# BUG#29445 - match ... against () never returns
|
# BUG#29445 - match ... against () never returns
|
||||||
#
|
#
|
||||||
|
@ -590,4 +590,13 @@ select group_concat(distinct a, c order by a desc, c desc) from t1;
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#30897 GROUP_CONCAT returns extra comma on empty fields
|
||||||
|
#
|
||||||
|
create table t1 (f1 char(20));
|
||||||
|
insert into t1 values (''),('');
|
||||||
|
select group_concat(distinct f1) from t1;
|
||||||
|
select group_concat(f1) from t1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
@ -880,5 +880,33 @@ SELECT 1 FROM t1 GROUP BY (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) );
|
|||||||
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #30715: Assertion failed: item_field->field->real_maybe_null(), file
|
||||||
|
# .\opt_sum.cc, line
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1 (a int, b date NOT NULL, KEY k1 (a,b));
|
||||||
|
SELECT MIN(b) FROM t1 WHERE a=1 AND b>'2007-08-01';
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #31794: no syntax error on SELECT id FROM t HAVING count(*)>2;
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1 (a INT);
|
||||||
|
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
||||||
|
|
||||||
|
SET SQL_MODE=ONLY_FULL_GROUP_BY;
|
||||||
|
--error ER_MIX_OF_GROUP_FUNC_AND_FIELDS
|
||||||
|
SELECT a FROM t1 HAVING COUNT(*)>2;
|
||||||
|
--error ER_MIX_OF_GROUP_FUNC_AND_FIELDS
|
||||||
|
SELECT COUNT(*), a FROM t1;
|
||||||
|
|
||||||
|
SET SQL_MODE=DEFAULT;
|
||||||
|
SELECT a FROM t1 HAVING COUNT(*)>2;
|
||||||
|
SELECT COUNT(*), a FROM t1;
|
||||||
|
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
###
|
###
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
@ -782,6 +782,19 @@ explain extended select encode(f1,'zxcv') as 'enc' from t1;
|
|||||||
explain extended select decode(f1,'zxcv') as 'enc' from t1;
|
explain extended select decode(f1,'zxcv') as 'enc' from t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #31758 inet_ntoa, oct, crashes server with null + filesort
|
||||||
|
#
|
||||||
|
create table t1 (a bigint not null)engine=myisam;
|
||||||
|
insert into t1 set a = 1024*1024*1024*4;
|
||||||
|
delete from t1 order by (inet_ntoa(a)) desc limit 10;
|
||||||
|
drop table t1;
|
||||||
|
create table t1 (a char(36) not null)engine=myisam;
|
||||||
|
insert ignore into t1 set a = ' ';
|
||||||
|
insert ignore into t1 set a = ' ';
|
||||||
|
select * from t1 order by (oct(a));
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo End of 4.1 tests
|
--echo End of 4.1 tests
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -790,6 +790,41 @@ drop table t1;
|
|||||||
SET SQL_MODE = '';
|
SET SQL_MODE = '';
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #32202: ORDER BY not working with GROUP BY
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1(
|
||||||
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
c1 INT NOT NULL,
|
||||||
|
c2 INT NOT NULL,
|
||||||
|
UNIQUE KEY (c2,c1));
|
||||||
|
|
||||||
|
INSERT INTO t1(c1,c2) VALUES (5,1), (4,1), (3,5), (2,3), (1,3);
|
||||||
|
|
||||||
|
# Show that the test cases from the bug report pass
|
||||||
|
SELECT * FROM t1 ORDER BY c1;
|
||||||
|
SELECT * FROM t1 GROUP BY id ORDER BY c1;
|
||||||
|
|
||||||
|
# Show that DESC is handled correctly
|
||||||
|
SELECT * FROM t1 GROUP BY id ORDER BY id DESC;
|
||||||
|
|
||||||
|
# Show that results are correctly ordered when ORDER BY fields
|
||||||
|
# are a subset of GROUP BY ones
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ,c1, id ORDER BY c2, c1;
|
||||||
|
SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1;
|
||||||
|
SELECT * FROM t1 GROUP BY c2, c1, id ORDER BY c2 DESC, c1 DESC;
|
||||||
|
|
||||||
|
# Show that results are correctly ordered when GROUP BY fields
|
||||||
|
# are a subset of ORDER BY ones
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2, c1;
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1;
|
||||||
|
SELECT * FROM t1 GROUP BY c2 ORDER BY c2 DESC, c1 DESC;
|
||||||
|
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo End of 5.0 tests
|
||||||
# Bug #21174: Index degrades sort performance and
|
# Bug #21174: Index degrades sort performance and
|
||||||
# optimizer does not honor IGNORE INDEX.
|
# optimizer does not honor IGNORE INDEX.
|
||||||
# a.k.a WL3527.
|
# a.k.a WL3527.
|
||||||
|
@ -890,6 +890,7 @@ FLUSH STATUS;
|
|||||||
DELETE FROM t3 WHERE (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) > 10000;
|
DELETE FROM t3 WHERE (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) > 10000;
|
||||||
SHOW STATUS LIKE 'handler_read__e%';
|
SHOW STATUS LIKE 'handler_read__e%';
|
||||||
FLUSH STATUS;
|
FLUSH STATUS;
|
||||||
|
--error ER_SUBQUERY_NO_1_ROW
|
||||||
DELETE FROM t3 WHERE (SELECT (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) x
|
DELETE FROM t3 WHERE (SELECT (SELECT MAX(b) FROM t1 GROUP BY a HAVING a < 2) x
|
||||||
FROM t1) > 10000;
|
FROM t1) > 10000;
|
||||||
SHOW STATUS LIKE 'handler_read__e%';
|
SHOW STATUS LIKE 'handler_read__e%';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user