Commit 1f5f3612 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Fixed syntax error in mysql.cc

parent 3ede1596
This diff is collapsed.
...@@ -45829,9 +45829,6 @@ Another common reason to receive the @code{MySQL server has gone away} error ...@@ -45829,9 +45829,6 @@ Another common reason to receive the @code{MySQL server has gone away} error
is because you have issued a ``close'' on your MySQL connection is because you have issued a ``close'' on your MySQL connection
and then tried to run a query on the closed connection. and then tried to run a query on the closed connection.
You can check that the MySQL hasn't died by executing
@code{mysqladmin version} and examining the uptime.
If you have a script, you just have to issue the query again for the client If you have a script, you just have to issue the query again for the client
to do an automatic reconnection. to do an automatic reconnection.
...@@ -45846,6 +45843,15 @@ server. ...@@ -45846,6 +45843,15 @@ server.
to the server, but it didn't get a full answer (or any answer) to the question. to the server, but it didn't get a full answer (or any answer) to the question.
@end multitable @end multitable
You will also get this error if someone has kills the running thread with
@code{kill #threadid#}.
You can check that the MySQL hasn't died by executing @code{mysqladmin
version} and examining the uptime. If the problem is that mysqld
crashed you should concentrate one finding the reason for the crash.
You should in this case start by checking if issuing the query again
will kill MySQL again. @xref{Crashing}.
You can also get these errors if you send a query to the server that is You can also get these errors if you send a query to the server that is
incorrect or too large. If @code{mysqld} gets a packet that is too large incorrect or too large. If @code{mysqld} gets a packet that is too large
or out of order, it assumes that something has gone wrong with the client and or out of order, it assumes that something has gone wrong with the client and
...@@ -45856,6 +45862,26 @@ starting @code{mysqld} with the @code{-O max_allowed_packet=#} option ...@@ -45856,6 +45862,26 @@ starting @code{mysqld} with the @code{-O max_allowed_packet=#} option
use more memory only when you issue a big query or when @code{mysqld} must use more memory only when you issue a big query or when @code{mysqld} must
return a big result row! return a big result row!
If you want to make a bug report regarding this problem, be sure that
you include the following information:
@itemize @bullet
@item
Include information if MySQL died or not. (You can find this in the
@code{hostname.err file}. @xref{Crashing}.
@item
If a specific query kills @code{mysqld} and the involved tables where
checked with @code{CHECK TABLE} before you did the query, can you do
a test case for this? @xref{Reproduceable test case}.
@item
What is the value of the @code{wait_timeout} variable in the MySQL server ?
@code{mysqladmin variables} gives you the value of this
@item
Have you tried to run @code{mysqld} with @code{--log} and check if the
issued query appears in the log ?
@end itemize
@xref{Asking questions}.
@node Can not connect to server, Blocked host, Gone away, Common errors @node Can not connect to server, Blocked host, Gone away, Common errors
@appendixsubsec @code{Can't connect to [local] MySQL server} Error @appendixsubsec @code{Can't connect to [local] MySQL server} Error
/* Copyright (C) 2000 MySQL AB /* Copyright (C) 2000-2002 MySQL AB
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -685,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -685,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break; break;
case 'p': case 'p':
if (argument == disabled_my_option) if (argument == disabled_my_option)
opt_password= ""; opt_password= (char*) "";
else else
{ {
if (argument) if (argument)
...@@ -2319,7 +2319,7 @@ com_status(String *buffer __attribute__((unused)), ...@@ -2319,7 +2319,7 @@ com_status(String *buffer __attribute__((unused)),
} }
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
if (mysql.net.vio->ssl_ && SSL_get_cipher(mysql.net.vio->ssl_)) if (mysql.net.vio->ssl_ && SSL_get_cipher(mysql.net.vio->ssl_))
tee_fprintf("SSL cipher in use is %s\n", tee_fprintf(stdout, "SSL cipher in use is %s\n",
SSL_get_cipher(mysql.net.vio->ssl_)); SSL_get_cipher(mysql.net.vio->ssl_));
else else
#endif /* HAVE_OPENSSL */ #endif /* HAVE_OPENSSL */
......
...@@ -105,7 +105,7 @@ static long thread_id=0; ...@@ -105,7 +105,7 @@ static long thread_id=0;
my_bool my_thread_init(void) my_bool my_thread_init(void)
{ {
struct st_my_thread_var *tmp; struct st_my_thread_var *tmp;
#ifdef EXTRA_DEBUG #ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init(): thread_id=%ld\n",pthread_self()); fprintf(stderr,"my_thread_init(): thread_id=%ld\n",pthread_self());
#endif #endif
#if !defined(__WIN__) || defined(USE_TLS) || ! defined(SAFE_MUTEX) #if !defined(__WIN__) || defined(USE_TLS) || ! defined(SAFE_MUTEX)
...@@ -152,7 +152,7 @@ end: ...@@ -152,7 +152,7 @@ end:
void my_thread_end(void) void my_thread_end(void)
{ {
struct st_my_thread_var *tmp=my_thread_var; struct st_my_thread_var *tmp=my_thread_var;
#ifdef EXTRA_DEBUG #ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_end(): tmp=%p,thread_id=%ld\n", fprintf(stderr,"my_thread_end(): tmp=%p,thread_id=%ld\n",
tmp,pthread_self()); tmp,pthread_self());
#endif #endif
......
...@@ -29,7 +29,7 @@ columns_in_order_by=+64 # number of columns in order by ...@@ -29,7 +29,7 @@ columns_in_order_by=+64 # number of columns in order by
comment_#=yes # # as comment comment_#=yes # # as comment
comment_--=yes # -- as comment (ANSI) comment_--=yes # -- as comment (ANSI)
comment_/**/=yes # /* */ as comment comment_/**/=yes # /* */ as comment
comment_//=no # // as comment (ANSI) comment_//=no # // as comment
compute=no # Compute compute=no # Compute
connections=101 # Simultaneous connections (installation default) connections=101 # Simultaneous connections (installation default)
constraint_check=no # Column constraints constraint_check=no # Column constraints
...@@ -62,6 +62,7 @@ except=no # except ...@@ -62,6 +62,7 @@ except=no # except
except_all=no # except all except_all=no # except all
except_all_incompat=no # except all (incompatible lists) except_all_incompat=no # except all (incompatible lists)
except_incompat=no # except (incompatible lists) except_incompat=no # except (incompatible lists)
field_name_case=yes # case independent field names
float_int_expr=yes # mixing of integer and float in expression float_int_expr=yes # mixing of integer and float in expression
foreign_key=no # foreign keys foreign_key=no # foreign keys
foreign_key_syntax=yes # foreign key syntax foreign_key_syntax=yes # foreign key syntax
...@@ -228,10 +229,10 @@ func_odbc_timestampdiff=no # Function TIMESTAMPDIFF ...@@ -228,10 +229,10 @@ func_odbc_timestampdiff=no # Function TIMESTAMPDIFF
func_odbc_truncate=yes # Function TRUNCATE func_odbc_truncate=yes # Function TRUNCATE
func_odbc_ucase=yes # Function UCASE func_odbc_ucase=yes # Function UCASE
func_odbc_user()=yes # Function USER() func_odbc_user()=yes # Function USER()
func_odbc_week=yes # Function WEEK func_odbc_week=error # Function WEEK
func_odbc_year=yes # Function YEAR func_odbc_year=yes # Function YEAR
func_sql_+=yes # Function +, -, * and / func_sql_+=yes # Function +, -, * and /
func_sql_bit_length=no # Function BIT_LENGTH func_sql_bit_length=yes # Function BIT_LENGTH
func_sql_cast=no # Function CAST func_sql_cast=no # Function CAST
func_sql_char_length=error # Function CHAR_LENGTH func_sql_char_length=error # Function CHAR_LENGTH
func_sql_char_length(constant)=yes # Function CHAR_LENGTH(constant) func_sql_char_length(constant)=yes # Function CHAR_LENGTH(constant)
...@@ -299,13 +300,14 @@ group_func_sql_min_str=yes # Group function MIN on strings ...@@ -299,13 +300,14 @@ group_func_sql_min_str=yes # Group function MIN on strings
group_func_sql_some=no # Group function SOME group_func_sql_some=no # Group function SOME
group_func_sql_sum=yes # Group function SUM group_func_sql_sum=yes # Group function SUM
group_functions=yes # Group functions group_functions=yes # Group functions
group_many_distinct_functions=yes # Group functions with several distinct
group_on_unused=yes # Group on unused column group_on_unused=yes # Group on unused column
has_true_false=no # TRUE and FALSE has_true_false=no # TRUE and FALSE
having=yes # Having having=yes # Having
having_with_alias=yes # Having on alias having_with_alias=yes # Having on alias
having_with_group=yes # Having with group function having_with_group=yes # Having with group function
hex_numbers=yes # hex numbers (0x41) hex_numbers=yes # hex numbers (0x41)
hex_strings=no # hex strings (x'1ace') hex_strings=yes # hex strings (x'1ace')
ignore_end_space=yes # Ignore end space in compare ignore_end_space=yes # Ignore end space in compare
index_in_create=yes # index in create table index_in_create=yes # index in create table
index_namespace=yes # different namespace for index index_namespace=yes # different namespace for index
...@@ -319,7 +321,7 @@ intersect=no # intersect ...@@ -319,7 +321,7 @@ intersect=no # intersect
intersect_all=no # intersect all intersect_all=no # intersect all
intersect_all_incompat=no # intersect all (incompatible lists) intersect_all_incompat=no # intersect all (incompatible lists)
intersect_incompat=no # intersect (incompatible lists) intersect_incompat=no # intersect (incompatible lists)
join_tables=63 # tables in join join_tables=31 # tables in join
left_outer_join=yes # left outer join left_outer_join=yes # left outer join
left_outer_join_using=yes # left outer join using left_outer_join_using=yes # left outer join using
like_with_column=yes # column LIKE column like_with_column=yes # column LIKE column
...@@ -331,7 +333,7 @@ max_char_size=255 # max char() size ...@@ -331,7 +333,7 @@ max_char_size=255 # max char() size
max_column_name=64 # column name length max_column_name=64 # column name length
max_columns=3398 # Columns in table max_columns=3398 # Columns in table
max_conditions=85660 # OR and AND in WHERE max_conditions=85660 # OR and AND in WHERE
max_expressions=1837 # simple expressions max_expressions=856 # simple expressions
max_index=32 # max index max_index=32 # max index
max_index_length=500 # index length max_index_length=500 # index length
max_index_name=64 # index name length max_index_name=64 # index name length
...@@ -341,7 +343,7 @@ max_index_varchar_part_length=255 # index varchar part length ...@@ -341,7 +343,7 @@ max_index_varchar_part_length=255 # index varchar part length
max_row_length=65534 # max table row length (without blobs) max_row_length=65534 # max table row length (without blobs)
max_row_length_with_null=65502 # table row length with nulls (without blobs) max_row_length_with_null=65502 # table row length with nulls (without blobs)
max_select_alias_name=+512 # select alias name length max_select_alias_name=+512 # select alias name length
max_stack_expression=1837 # stacked expressions max_stack_expression=856 # stacked expressions
max_table_alias_name=+512 # table alias name length max_table_alias_name=+512 # table alias name length
max_table_name=64 # table name length max_table_name=64 # table name length
max_text_size=1048543 # max text or blob size max_text_size=1048543 # max text or blob size
...@@ -353,8 +355,8 @@ minus_neg=yes # Calculate 1--1 ...@@ -353,8 +355,8 @@ minus_neg=yes # Calculate 1--1
multi_drop=yes # many tables to drop table multi_drop=yes # many tables to drop table
multi_null_in_unique=yes # null in unique index multi_null_in_unique=yes # null in unique index
multi_strings=yes # Multiple line strings multi_strings=yes # Multiple line strings
multi_table_delete=no # DELETE FROM table1,table2... multi_table_delete=yes # DELETE FROM table1,table2...
multi_table_update=no # Update with many tables multi_table_update=yes # Update with many tables
natural_join=yes # natural join natural_join=yes # natural join
natural_join_incompat=yes # natural join (incompatible lists) natural_join_incompat=yes # natural join (incompatible lists)
natural_left_outer_join=yes # natural left outer join natural_left_outer_join=yes # natural left outer join
...@@ -365,7 +367,7 @@ null_in_unique=yes # null in unique index ...@@ -365,7 +367,7 @@ null_in_unique=yes # null in unique index
null_num_expr=yes # Is 1+NULL = NULL null_num_expr=yes # Is 1+NULL = NULL
nulls_in_unique=yes # null combination in unique index nulls_in_unique=yes # null combination in unique index
odbc_left_outer_join=yes # left outer join odbc style odbc_left_outer_join=yes # left outer join odbc style
operating_system=Linux 2.2.13-SMP alpha # crash-me tested on operating_system=Linux 2.4.16-64GB-SMP i686 # crash-me tested on
order_by=yes # Order by order_by=yes # Order by
order_by_alias=yes # Order by alias order_by_alias=yes # Order by alias
order_by_function=yes # Order by function order_by_function=yes # Order by function
...@@ -385,7 +387,7 @@ quote_with_"=yes # Allows ' and " as string markers ...@@ -385,7 +387,7 @@ quote_with_"=yes # Allows ' and " as string markers
remember_end_space=no # Remembers end space in char() remember_end_space=no # Remembers end space in char()
remember_end_space_varchar=no # Remembers end space in varchar() remember_end_space_varchar=no # Remembers end space in varchar()
rename_table=yes # rename table rename_table=yes # rename table
repeat_string_size=1047552 # return string size from function repeat_string_size=1048576 # return string size from function
right_outer_join=yes # right outer join right_outer_join=yes # right outer join
rowid=auto_increment # Type for row id rowid=auto_increment # Type for row id
select_constants=yes # Select constants select_constants=yes # Select constants
...@@ -394,7 +396,7 @@ select_limit2=yes # SELECT with LIMIT #,# ...@@ -394,7 +396,7 @@ select_limit2=yes # SELECT with LIMIT #,#
select_string_size=1048565 # constant string size in SELECT select_string_size=1048565 # constant string size in SELECT
select_table_update=no # Update with sub select select_table_update=no # Update with sub select
select_without_from=yes # SELECT without FROM select_without_from=yes # SELECT without FROM
server_version=MySQL 3.23.39 debug # server version server_version=MySQL 4.0.2 alpha debug # server version
simple_joins=yes # ANSI SQL simple joins simple_joins=yes # ANSI SQL simple joins
storage_of_float=round # Storage of float values storage_of_float=round # Storage of float values
subqueries=no # subqueries subqueries=no # subqueries
...@@ -402,7 +404,7 @@ table_alias=yes # Table alias ...@@ -402,7 +404,7 @@ table_alias=yes # Table alias
table_name_case=no # case independent table names table_name_case=no # case independent table names
table_wildcard=yes # Select table_name.* table_wildcard=yes # Select table_name.*
temporary_table=yes # temporary tables temporary_table=yes # temporary tables
transactions=yes # constant string size in where transactions=yes # transactions
truncate_table=yes # truncate truncate_table=yes # truncate
type_extra_abstime=no # Type abstime type_extra_abstime=no # Type abstime
type_extra_bfile=no # Type bfile type_extra_bfile=no # Type bfile
...@@ -512,12 +514,11 @@ type_sql_time=yes # Type time ...@@ -512,12 +514,11 @@ type_sql_time=yes # Type time
type_sql_timestamp=yes # Type timestamp type_sql_timestamp=yes # Type timestamp
type_sql_timestamp_with_time_zone=no # Type timestamp with time zone type_sql_timestamp_with_time_zone=no # Type timestamp with time zone
type_sql_varchar(1_arg)=yes # Type varchar(1 arg) type_sql_varchar(1_arg)=yes # Type varchar(1 arg)
union=no # union union=yes # union
union_all=no # union all union_all=yes # union all
union_all_incompat=no # union all (incompatible lists) union_all_incompat=yes # union all (incompatible lists)
union_incompat=no # union (incompatible lists) union_incompat=yes # union (incompatible lists)
unique_in_create=yes # unique in create table unique_in_create=yes # unique in create table
unique_null_in_create=yes # unique null in create unique_null_in_create=yes # unique null in create
user_comment=Alpha DS20 2x500 MHz, 2G memory, key_buffer=16M; ccc + cxx # comment
views=no # views views=no # views
where_string_size=1048539 # constant string size in where where_string_size=1048539 # constant string size in where
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment