Commit 8b91ed2c authored by unknown's avatar unknown

Added STDCALL to mysql_sever and mysql_thread variables

Merged error messages with 3.23.44
Fixed bug with DATA DIRECTORY on windows


Docs/internals.texi:
  Update coding policies
Docs/manual.texi:
  Minor general corrections
acinclude.m4:
  Fixed wrong cpu-test
configure.in:
  Remove CPU test, because this makes unportable binaries.
include/mysql.h:
  Added STDCALL to mysql_sever and mysql_thread variables
include/mysqld_error.h:
  Merged error messages with 3.23.44
libmysql/libmysql.c:
  Added STDCALL to mysql_sever and mysql_thread variables
libmysqld/lib_sql.cc:
  Added STDCALL to mysql_sever and mysql_thread variables
sql-bench/limits/db2.cfg:
  New limits file
sql-bench/test-select.sh:
  Fixed bug in cache test
sql/share/czech/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/danish/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/dutch/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/english/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/estonian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/french/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/german/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/greek/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/hungarian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/italian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/japanese/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/korean/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/norwegian-ny/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/norwegian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/polish/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/portuguese/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/romanian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/russian/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/slovak/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/spanish/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/swedish/errmsg.txt:
  Merged error messages with 3.23.44
sql/share/ukrainian/errmsg.txt:
  Merged error messages with 3.23.44
sql/sql_parse.cc:
  Fix bug with DATA DIRECTORY on windows.
sql/sql_select.cc:
  Cleanup
parent b3a97496
...@@ -183,23 +183,27 @@ and then we read the rows in the sorted order into a row buffer ...@@ -183,23 +183,27 @@ and then we read the rows in the sorted order into a row buffer
We are using @uref{http://www.bitkeeper.com/, BitKeeper} for source management. We are using @uref{http://www.bitkeeper.com/, BitKeeper} for source management.
@item @item
You should use the @strong{MySQL} 3.23 or 4.0 source for all developments. You should use the @strong{MySQL} 4.0 source for all developments.
@item @item
If you have any questions about the @strong{MySQL} source, you can post these If you have any questions about the @strong{MySQL} source, you can post these
to @email{developers@@mysql.com} and we will answer them. to @email{dev-public@@mysql.com} and we will answer them. Please
Note that we will shortly change the name of this list to remember to not use this internal email list in public!
@email{internals@@mysql.com}, to more accurately reflect what should be
posted to this list.
@item @item
Try to write code in a lot of black boxes that can be reused or at Try to write code in a lot of black boxes that can be reused or use at
least have a clean interface. least a clean, easy to change interface.
@item @item
Reuse code; There is already a lot of algorithms in MySQL for list handling, Reuse code; There is already a lot of algorithms in MySQL for list handling,
queues, dynamic and hashed arrays, sorting, etc. that can be reused. queues, dynamic and hashed arrays, sorting, etc. that can be reused.
@item
Use the @code{my_*} functions like @code{my_read()}/@code{my_write()}/
@code{my_malloc()} that you can find in the @code{mysys} library instead
of the direct system calls; This will make your code easier to debug and
more portable.
@item @item
Try to always write optimized code, so that you don't have to Try to always write optimized code, so that you don't have to
go back and rewrite it a couple of months later. It's better to go back and rewrite it a couple of months later. It's better to
...@@ -222,7 +226,11 @@ Do not check the same pointer for @code{NULL} more than once. ...@@ -222,7 +226,11 @@ Do not check the same pointer for @code{NULL} more than once.
@item @item
Use long function and variable names in English; This makes your code Use long function and variable names in English; This makes your code
easier to read. Use the 'varible_name' style instead of 'VariableName'. easier to read.
@item
Use my_var as opposed to myVar or MyVar (@samp{_} rather than dancing SHIFT
to seperate words in identifiers).
@item @item
Think assembly - make it easier for the compiler to optimize your code. Think assembly - make it easier for the compiler to optimize your code.
...@@ -232,14 +240,8 @@ Comment your code when you do something that someone else may think ...@@ -232,14 +240,8 @@ Comment your code when you do something that someone else may think
is not ''trivial''. is not ''trivial''.
@item @item
Use the @code{my_*} functions like @code{my_read()}/@code{my_write()}/ Use @code{libstring} functions (in the strings directory)
@code{my_malloc()} that you can find in the @code{mysys} library instead instead of standard libc string functions whenever possible.
of the direct system calls; This will make your code easier to debug and
more portable.
@item
Use @code{libstring} functions instead of standard libc string functions
whenever possible.
@item @item
Avoid using @code{malloc()} (its REAL slow); For memory allocations Avoid using @code{malloc()} (its REAL slow); For memory allocations
...@@ -253,10 +255,6 @@ it. This way we can easily provide you with feedback and also ...@@ -253,10 +255,6 @@ it. This way we can easily provide you with feedback and also
easily discuss it thoroughly if some other developer thinks there is better easily discuss it thoroughly if some other developer thinks there is better
way to do the same thing! way to do the same thing!
@item
Use my_var as opposed to myVar or MyVar (@samp{_} rather than dancing SHIFT
to seperate words in identifiers).
@item @item
Class names start with a capital letter. Class names start with a capital letter.
......
...@@ -9592,8 +9592,8 @@ version 4.0; ...@@ -9592,8 +9592,8 @@ version 4.0;
@item @item
The old C API functions @code{mysql_drop_db}, @code{mysql_create_db} and The old C API functions @code{mysql_drop_db}, @code{mysql_create_db} and
@code{mysql_connect} are not supported anymore, unless one compiles @code{mysql_connect} are not supported anymore, unless one compiles
MySQL with @code{USE_OLD_FUNCTIONS}. Instead of doing this, one should MySQL with @code{CFLAGS=-DUSE_OLD_FUNCTIONS}. Instead of doing this,
change the client to use the new 4.0 API. one should change the client to use the new 4.0 API.
@item @item
In the @code{MYSQL_FIELD} structure, @code{length} and @code{max_length} has In the @code{MYSQL_FIELD} structure, @code{length} and @code{max_length} has
changed from @code{unsigned int} to @code{unsigned long}. This should not changed from @code{unsigned int} to @code{unsigned long}. This should not
...@@ -9616,6 +9616,10 @@ Format of @code{SHOW OPEN TABLE} has changed. ...@@ -9616,6 +9616,10 @@ Format of @code{SHOW OPEN TABLE} has changed.
@item @item
Multithreaded clients should use @code{mysql_thread_init()} and Multithreaded clients should use @code{mysql_thread_init()} and
@code{mysql_thread_end()}. @xref{Threaded clients}. @code{mysql_thread_end()}. @xref{Threaded clients}.
@item
If you want to recompile the perl DBD-MySQL module, you must get
Msql-Mysql-modules version 1.2218 or newer, because the older DBD modules
used the deprecated @code{drop_db()} call.
@end itemize @end itemize
@node Upgrading-from-3.22, Upgrading-from-3.21, Upgrading-from-3.23, Upgrade @node Upgrading-from-3.22, Upgrading-from-3.21, Upgrading-from-3.23, Upgrade
...@@ -9660,6 +9664,10 @@ option @code{--no-named-commands (-g)}. This option can be disabled with ...@@ -9660,6 +9664,10 @@ option @code{--no-named-commands (-g)}. This option can be disabled with
some cases, for example in SQL scripts that use named commands without a some cases, for example in SQL scripts that use named commands without a
semicolon! Long format commands still work from the first line. semicolon! Long format commands still work from the first line.
@item
Date functions that work on part of dates (like @code{MONTH()}) will now
return 0 for @code{0000-00-00} dates. (MySQL 3.22 returned @code{NULL}).
@item @item
If you are using the @code{german} character sort order, you must repair If you are using the @code{german} character sort order, you must repair
all your tables with @code{isamchk -r}, as we have made some changes in all your tables with @code{isamchk -r}, as we have made some changes in
...@@ -10368,6 +10376,8 @@ You can avoid using @file{libg++.a} by running @code{configure} like this: ...@@ -10368,6 +10376,8 @@ You can avoid using @file{libg++.a} by running @code{configure} like this:
shell> CXX=gcc ./configure shell> CXX=gcc ./configure
@end example @end example
If you are running gcc 3.0 and above, you can't use the above trick with
CXX=gcc, but you have to install libstd++.
@node Linux-SPARC, Linux-Alpha, Linux-x86, Linux @node Linux-SPARC, Linux-Alpha, Linux-x86, Linux
@subsubsection Linux SPARC Notes @subsubsection Linux SPARC Notes
...@@ -10950,6 +10960,10 @@ Because Windows doesn't allow you to drop files that are open, you first ...@@ -10950,6 +10960,10 @@ Because Windows doesn't allow you to drop files that are open, you first
must flush all @code{MERGE} tables (with @code{FLUSH TABLES}) or drop the must flush all @code{MERGE} tables (with @code{FLUSH TABLES}) or drop the
@code{MERGE} table before dropping the table. We will fix this at the same @code{MERGE} table before dropping the table. We will fix this at the same
time we introduce @code{VIEW}s. time we introduce @code{VIEW}s.
@item
@code{DATA DIRECTORY} and @code{INDEX DIRECTORY} directives in
@code{CREATE TABLE} is ignored on windows, because windows doesn't support
symbolic links.
@end table @end table
Here are some open issues for anyone who might want to help us with the Windows Here are some open issues for anyone who might want to help us with the Windows
...@@ -11184,7 +11198,7 @@ When using the @code{--with-libwrap} configure option, you must also ...@@ -11184,7 +11198,7 @@ When using the @code{--with-libwrap} configure option, you must also
include the libraries that @file{libwrap.a} needs: include the libraries that @file{libwrap.a} needs:
@example @example
--with-libwrap="/opt/NUtcpwrapper-7.6/lib/libwrap.a -lnsl -lsocket --with-libwrap="/opt/NUtcpwrapper-7.6/ -lnsl -lsocket
@end example @end example
If you have problems with configure trying to link with @code{-lz} and If you have problems with configure trying to link with @code{-lz} and
...@@ -35648,15 +35662,6 @@ If you use @code{ALTER TABLE} on a @code{MyISAM} table, all non-unique ...@@ -35648,15 +35662,6 @@ If you use @code{ALTER TABLE} on a @code{MyISAM} table, all non-unique
indexes are created in a separate batch (like in @code{REPAIR}). indexes are created in a separate batch (like in @code{REPAIR}).
This should make @code{ALTER TABLE} much faster when you have many indexes. This should make @code{ALTER TABLE} much faster when you have many indexes.
@item
Since @strong{MySQL 4.0} this can be activated explicitly.
@code{ALTER TABLE ... DISABLE KEYS} makes MySQL to stop updating
non-unique indexes for @code{MyISAM} table.
@code{ALTER TABLE ... ENABLE KEYS} then should be used to recreate missing
indexes. As MySQL does it with special algorithm which is much
faster then inserting keys one by one, disabling keys could give a
considerable speedup on bulk inserts.
@item @item
@findex mysql_info() @findex mysql_info()
With the C API function @code{mysql_info()}, you can find out how many With the C API function @code{mysql_info()}, you can find out how many
...@@ -39091,7 +39096,14 @@ they roll back the corresponding SQL statement. ...@@ -39091,7 +39096,14 @@ they roll back the corresponding SQL statement.
@itemize @bullet @itemize @bullet
@item @code{SHOW TABLE STATUS} does not give accurate statistics @item
@strong{WARNING:} Do @strong{NOT} convert MySQL system tables from
MyISAM TO InnoDB tables! This is not supported; If you do this MySQL
will not restart until you restore the old system tables from a backup
or re-generate them with the mysql_install_db script.
@item
@code{SHOW TABLE STATUS} does not give accurate statistics
on InnoDB tables, except for the physical size reserved by the table. on InnoDB tables, except for the physical size reserved by the table.
The row count is only a rough estimate used in SQL optimization. The row count is only a rough estimate used in SQL optimization.
...@@ -47349,7 +47361,7 @@ chapter or for the proper operation of the programs listed herein. ...@@ -47349,7 +47361,7 @@ chapter or for the proper operation of the programs listed herein.
Perl @code{Data-Dumper} module. Useful with @code{DBI}/@code{DBD} support for Perl @code{Data-Dumper} module. Useful with @code{DBI}/@code{DBD} support for
older Perl installations. older Perl installations.
@item @uref{http://www.mysql.com/Downloads/Contrib/DBI-1.15.tar.gz, DBI-1.15.tar.gz} @item @uref{http://www.mysql.com/Downloads/Contrib/DBI-1.18.tar.gz, DBI-1.18.tar.gz}
Perl @code{DBI} module. Perl @code{DBI} module.
@item @uref{http://www.mysql.com/Downloads/Contrib/KAMXbase1.2.tar.gz,KAMXbase1.2.tar.gz} @item @uref{http://www.mysql.com/Downloads/Contrib/KAMXbase1.2.tar.gz,KAMXbase1.2.tar.gz}
...@@ -47358,7 +47370,7 @@ module written by Pratap Pereira @email{pereira@@ee.eng.ohio-state.edu}, ...@@ -47358,7 +47370,7 @@ module written by Pratap Pereira @email{pereira@@ee.eng.ohio-state.edu},
extended by Kevin A. McGrail @email{kmcgrail@@digital1.peregrinehw.com}. extended by Kevin A. McGrail @email{kmcgrail@@digital1.peregrinehw.com}.
This converter can handle MEMO fields. This converter can handle MEMO fields.
@item @uref{http://www.mysql.com/Downloads/Contrib/Msql-Mysql-modules-1.2216.tar.gz, Msql-Mysql-modules-1.2216.tar.gz} @item @uref{http://www.mysql.com/Downloads/Contrib/Msql-Mysql-modules-1.2218.tar.gz, Msql-Mysql-modules-1.2218.tar.gz}
Perl @code{DBD} module to access mSQL and MySQL databases. Perl @code{DBD} module to access mSQL and MySQL databases.
@item @uref{http://www.mysql.com/Downloads/Contrib/Data-ShowTable-3.3.tar.gz, Data-ShowTable-3.3.tar.gz} @item @uref{http://www.mysql.com/Downloads/Contrib/Data-ShowTable-3.3.tar.gz, Data-ShowTable-3.3.tar.gz}
...@@ -47440,9 +47452,6 @@ A C++ database independent library that supports MySQL. ...@@ -47440,9 +47452,6 @@ A C++ database independent library that supports MySQL.
@cindex Delphi @cindex Delphi
@item Delphi @item Delphi
@itemize @bullet @itemize @bullet
@item @uref{http://www.mysql.com/Downloads/Contrib/delphi-interface.gz, delphi-interface.gz}
Delphi interface to @code{libmysql.dll}, by Blestan Tabakov,
@email{root@@tdg.bis.bg}.
@item @uref{http://www.mysql.com/Downloads/Contrib/DelphiMySQL2.zip, DelphiMySQL2.zip} @item @uref{http://www.mysql.com/Downloads/Contrib/DelphiMySQL2.zip, DelphiMySQL2.zip}
Delphi interface to @code{libmysql.dll}, by @email{bsilva@@umesd.k12.or.us}. Delphi interface to @code{libmysql.dll}, by @email{bsilva@@umesd.k12.or.us}.
...@@ -48656,6 +48665,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}. ...@@ -48656,6 +48665,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet @itemize @bullet
@item @item
Ignore @code{DATA DIRECTORY} and @code{INDEX DIRECTORY} directives on windows.
@item
Added boolean fulltext search code. It should be considered early alpha. Added boolean fulltext search code. It should be considered early alpha.
@item @item
Extended @code{MODIFY} and @code{CHANGE} in @code{ALTER TABLE} to accept Extended @code{MODIFY} and @code{CHANGE} in @code{ALTER TABLE} to accept
...@@ -652,7 +652,7 @@ if test -r /proc/cpuinfo ; then ...@@ -652,7 +652,7 @@ if test -r /proc/cpuinfo ; then
cpu_vendor=`$cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` cpu_vendor=`$cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
fi fi
if test "$cpu_vendor" = "AuthenticAMD"; then if test "$cpu_vendor" = "AuthenticAMD"; then
if test $cpu_family>=6; then if test $cpu_family -ge 6; then
cpu_set="athlon pentiumpro k5 pentium i486 i386"; cpu_set="athlon pentiumpro k5 pentium i486 i386";
elif test $cpu_family=5; then elif test $cpu_family=5; then
cpu_set="k5 pentium i486 i386"; cpu_set="k5 pentium i486 i386";
...@@ -662,7 +662,7 @@ if test "$cpu_vendor" = "AuthenticAMD"; then ...@@ -662,7 +662,7 @@ if test "$cpu_vendor" = "AuthenticAMD"; then
cpu_set="i386" cpu_set="i386"
fi fi
elif test "$cpu_vendor" = "GenuineIntel"; then elif test "$cpu_vendor" = "GenuineIntel"; then
if test $cpu_family>=6; then if test $cpu_family -ge 6; then
cpu_set="pentiumpro pentium i486 i386"; cpu_set="pentiumpro pentium i486 i386";
elif test $cpu_family=5; then elif test $cpu_family=5; then
cpu_set="pentium i486 i386"; cpu_set="pentium i486 i386";
......
...@@ -1769,7 +1769,7 @@ then ...@@ -1769,7 +1769,7 @@ then
fi fi
AC_SUBST(tools_dirs) AC_SUBST(tools_dirs)
MYSQL_CHECK_CPU #MYSQL_CHECK_CPU
MYSQL_CHECK_MYSQLFS MYSQL_CHECK_MYSQLFS
MYSQL_CHECK_VIO MYSQL_CHECK_VIO
MYSQL_CHECK_OPENSSL MYSQL_CHECK_OPENSSL
......
...@@ -253,15 +253,15 @@ typedef struct st_mysql_manager ...@@ -253,15 +253,15 @@ typedef struct st_mysql_manager
/* Set up and bring down the server; to ensure that applications will /* Set up and bring down the server; to ensure that applications will
* work when linked against either the standard client library or the * work when linked against either the standard client library or the
* embedded server library, these functions should be called. */ * embedded server library, these functions should be called. */
int mysql_server_init(int argc, char **argv, char **groups); int STDCALL mysql_server_init(int argc, char **argv, char **groups);
void mysql_server_end(void); void STDCALL mysql_server_end(void);
/* Set up and bring down a thread; these function should be called /* Set up and bring down a thread; these function should be called
* for each thread in an application which opens at least one MySQL * for each thread in an application which opens at least one MySQL
* connection. All uses of the connection(s) should be between these * connection. All uses of the connection(s) should be between these
* function calls. */ * function calls. */
my_bool mysql_thread_init(void); my_bool STDCALL mysql_thread_init(void);
void mysql_thread_end(void); void STDCALL mysql_thread_end(void);
/* Functions to get information from the MYSQL and MYSQL_RES structures */ /* Functions to get information from the MYSQL and MYSQL_RES structures */
/* Should definitely be used if one uses shared libraries */ /* Should definitely be used if one uses shared libraries */
...@@ -414,8 +414,8 @@ MYSQL * STDCALL mysql_connect(MYSQL *mysql, const char *host, ...@@ -414,8 +414,8 @@ MYSQL * STDCALL mysql_connect(MYSQL *mysql, const char *host,
int STDCALL mysql_create_db(MYSQL *mysql, const char *DB); int STDCALL mysql_create_db(MYSQL *mysql, const char *DB);
int STDCALL mysql_drop_db(MYSQL *mysql, const char *DB); int STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
#define mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT) #define mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT)
#define HAVE_MYSQL_REAL_CONNECT
#endif #endif
#define HAVE_MYSQL_REAL_CONNECT
/* /*
The following functions are mainly exported because of mysqlbinlog; The following functions are mainly exported because of mysqlbinlog;
......
...@@ -214,12 +214,16 @@ ...@@ -214,12 +214,16 @@
#define ER_NO_PERMISSION_TO_CREATE_USER 1211 #define ER_NO_PERMISSION_TO_CREATE_USER 1211
#define ER_UNION_TABLES_IN_DIFFERENT_DIR 1212 #define ER_UNION_TABLES_IN_DIFFERENT_DIR 1212
#define ER_LOCK_DEADLOCK 1213 #define ER_LOCK_DEADLOCK 1213
#define ER_CONNECT_TO_MASTER 1214 #define ER_TABLE_CANT_HANDLE_FULLTEXT 1214
#define ER_QUERY_ON_MASTER 1215 #define ER_CANNOT_ADD_FOREIGN 1215
#define ER_ERROR_WHEN_EXECUTING_COMMAND 1216 #define ER_NO_REFERENCED_ROW 1216
#define ER_WRONG_USAGE 1217 #define ER_ROW_IS_REFERENCED 1217
#define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 1218 #define ER_CONNECT_TO_MASTER 1218
#define ER_CANT_UPDATE_WITH_READLOCK 1219 #define ER_QUERY_ON_MASTER 1219
#define ER_MIXING_NOT_ALLOWED 1220 #define ER_ERROR_WHEN_EXECUTING_COMMAND 1220
#define ER_DUP_ARGUMENT 1221 #define ER_WRONG_USAGE 1221
#define ER_ERROR_MESSAGES 222 #define ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT 1222
#define ER_CANT_UPDATE_WITH_READLOCK 1223
#define ER_MIXING_NOT_ALLOWED 1224
#define ER_DUP_ARGUMENT 1225
#define ER_ERROR_MESSAGES 226
...@@ -91,17 +91,17 @@ static sig_handler pipe_sig_handler(int sig); ...@@ -91,17 +91,17 @@ static sig_handler pipe_sig_handler(int sig);
static ulong mysql_sub_escape_string(CHARSET_INFO *charset_info, char *to, static ulong mysql_sub_escape_string(CHARSET_INFO *charset_info, char *to,
const char *from, ulong length); const char *from, ulong length);
int mysql_server_init(int argc __attribute__((unused)), int STDCALL mysql_server_init(int argc __attribute__((unused)),
char **argv __attribute__((unused)), char **argv __attribute__((unused)),
char **groups __attribute__((unused))) char **groups __attribute__((unused)))
{ {
return 0; return 0;
} }
void mysql_server_end() void STDCALL mysql_server_end()
{} {}
my_bool mysql_thread_init() my_bool STDCALL mysql_thread_init()
{ {
#ifdef THREAD #ifdef THREAD
return my_thread_init(); return my_thread_init();
...@@ -110,7 +110,7 @@ my_bool mysql_thread_init() ...@@ -110,7 +110,7 @@ my_bool mysql_thread_init()
#endif #endif
} }
void mysql_thread_end() void STDCALL mysql_thread_end()
{ {
#ifdef THREAD #ifdef THREAD
my_thread_end(); my_thread_end();
......
...@@ -296,7 +296,7 @@ extern "C" ...@@ -296,7 +296,7 @@ extern "C"
static my_bool inited, org_my_init_done; static my_bool inited, org_my_init_done;
int mysql_server_init(int argc, char **argv, char **groups) int STDCALL mysql_server_init(int argc, char **argv, char **groups)
{ {
char glob_hostname[FN_REFLEN]; char glob_hostname[FN_REFLEN];
...@@ -561,7 +561,7 @@ int mysql_server_init(int argc, char **argv, char **groups) ...@@ -561,7 +561,7 @@ int mysql_server_init(int argc, char **argv, char **groups)
} }
void mysql_server_end() void STDCALL mysql_server_end()
{ {
clean_up(0); clean_up(0);
#ifdef THREAD #ifdef THREAD
...@@ -571,7 +571,7 @@ void mysql_server_end() ...@@ -571,7 +571,7 @@ void mysql_server_end()
#endif #endif
} }
my_bool mysql_thread_init() my_bool STDCALL mysql_thread_init()
{ {
#ifdef THREAD #ifdef THREAD
return my_thread_init(); return my_thread_init();
...@@ -580,7 +580,7 @@ my_bool mysql_thread_init() ...@@ -580,7 +580,7 @@ my_bool mysql_thread_init()
#endif #endif
} }
void mysql_thread_end() void STDCALL mysql_thread_end()
{ {
#ifdef THREAD #ifdef THREAD
my_thread_end(); my_thread_end();
......
This diff is collapsed.
...@@ -141,7 +141,7 @@ if ($limits->{'group_functions'}) ...@@ -141,7 +141,7 @@ if ($limits->{'group_functions'})
$loop_time=new Benchmark; $loop_time=new Benchmark;
for ($tests=0 ; $tests < $opt_loop_count ; $tests++) for ($tests=0 ; $tests < $opt_loop_count ; $tests++)
{ {
fetch_all_rows($dbh,"select sum(idn+$tests),sum(rev_idn-$tests) from bench1"); fetch_all_rows($dbh,"select sum(idn+100),sum(rev_idn-100) from bench1");
} }
$end_time=new Benchmark; $end_time=new Benchmark;
print "Time for select_query_cache ($opt_loop_count): " . print "Time for select_query_cache ($opt_loop_count): " .
......
...@@ -224,6 +224,10 @@ ...@@ -224,6 +224,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -218,6 +218,10 @@ ...@@ -218,6 +218,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -221,6 +221,10 @@ ...@@ -221,6 +221,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -218,6 +218,10 @@ ...@@ -218,6 +218,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -217,6 +217,10 @@ ...@@ -217,6 +217,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -217,6 +217,10 @@ ...@@ -217,6 +217,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -217,6 +217,10 @@ ...@@ -217,6 +217,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -217,6 +217,10 @@ ...@@ -217,6 +217,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"Não é permitido a %-.32s@%-.64s criar novos usuários", "Não é permitido a %-.32s@%-.64s criar novos usuários",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -219,6 +219,10 @@ ...@@ -219,6 +219,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -207,22 +207,26 @@ ...@@ -207,22 +207,26 @@
" slave, CHANGE MASTER TO", " slave, CHANGE MASTER TO",
" master info, persmissions master.info", " master info, persmissions master.info",
" SLAVE, ", " SLAVE, ",
"User %-.64s has already more than 'max_user_connections' active connections", " %-.64s 'max_user_connections' ",
"You may only use constant expressions with SET", " - SET",
"Lock wait timeout exceeded", " ",
"The total number of locks exceeds the lock table size", " ",
"Update locks cannot be acquired during a READ UNCOMMITTED transaction", " READ UNCOMMITTED ",
"DROP DATABASE not allowed while thread is holding global read lock", "DROP DATABASE ",
"CREATE DATABASE not allowed while thread is holding global read lock", "CREATE DATABASE ",
"Wrong arguments to %s", " %s",
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s ",
"Incorrect table definition; All MERGE tables must be in the same database", " ; MERGE- ",
"Deadlock found when trying to get lock; Try restarting transaction", " deadlock ; ",
"Error connecting to master: %-.128s", " FULLTEXT ",
"Error running query on master: %-.128s", "Cannot add foreign key constraint",
"Error when executing command %s: %-.128s", "Cannot add a child row: a foreign key constraint fails",
"Wrong usage of %s and %s", "Cannot delete a parent row: a foreign key constraint fails",
"The used SELECT statements have a different number of columns", " master: %-.128s",
"Can't execute the query because you have a conflicting read lock", " master: %-.128s",
"Mixing of transactional and non-transactional tables is disabled", " %s: %-.128s",
"Option '%s' used twice in statement", " %s %s",
" SELECT- ",
" - ",
" transactional non-transactional ",
" '%s' ",
...@@ -223,6 +223,10 @@ ...@@ -223,6 +223,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -216,6 +216,10 @@ ...@@ -216,6 +216,10 @@
"%-.32s@%-.64s is not allowed to create new users", "%-.32s@%-.64s is not allowed to create new users",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error de coneccion a master: %-128s", "Error de coneccion a master: %-128s",
"Error executando el query en master: %-128%", "Error executando el query en master: %-128%",
"Error de %s: %-128%", "Error de %s: %-128%",
......
...@@ -215,6 +215,10 @@ ...@@ -215,6 +215,10 @@
"%-.32s@%-.64s har inte rättighet att skapa nya användare", "%-.32s@%-.64s har inte rättighet att skapa nya användare",
"Felaktig tabell definition: Alla tabeller i en MERGE tabell måste vara i samma databas", "Felaktig tabell definition: Alla tabeller i en MERGE tabell måste vara i samma databas",
"Fick 'DEADLOCK' vid låsförsök av block/rad; Försök att starta om transaktionen", "Fick 'DEADLOCK' vid låsförsök av block/rad; Försök att starta om transaktionen",
"Tabelltypen har inte hantering av FULLTEXT index",
"Kan inte lägga till 'FOREIGN KEY constraint'",
"FOREIGN KEY konflikt: Kan inte skriva barn",
"FOREIGN KEY konflikt: Kan inte radera fader",
"Fick fel vid anslutning till master: %-.128s", "Fick fel vid anslutning till master: %-.128s",
"Fick fel vid utförande av command på mastern: %-.128s", "Fick fel vid utförande av command på mastern: %-.128s",
"Fick fel vid utförande av %s: %-.128s", "Fick fel vid utförande av %s: %-.128s",
......
...@@ -220,6 +220,10 @@ ...@@ -220,6 +220,10 @@
" %-.32s@%-.64s ަ", " %-.32s@%-.64s ަ",
"Incorrect table definition; All MERGE tables must be in the same database", "Incorrect table definition; All MERGE tables must be in the same database",
"Deadlock found when trying to get lock; Try restarting transaction", "Deadlock found when trying to get lock; Try restarting transaction",
"The used table type doesn't support FULLTEXT indexes",
"Cannot add foreign key constraint",
"Cannot add a child row: a foreign key constraint fails",
"Cannot delete a parent row: a foreign key constraint fails",
"Error connecting to master: %-.128s", "Error connecting to master: %-.128s",
"Error running query on master: %-.128s", "Error running query on master: %-.128s",
"Error when executing command %s: %-.128s", "Error when executing command %s: %-.128s",
......
...@@ -1294,6 +1294,9 @@ mysql_execute_command(void) ...@@ -1294,6 +1294,9 @@ mysql_execute_command(void)
res=0; res=0;
break; break;
} }
#ifndef HAVE_READLINK
lex->create_info.data_file_name=lex->create_info.index_file_name=0;
#else
/* Fix names if symlinked tables */ /* Fix names if symlinked tables */
if (append_file_to_dir(&lex->create_info.data_file_name, tables->name) || if (append_file_to_dir(&lex->create_info.data_file_name, tables->name) ||
append_file_to_dir(&lex->create_info.index_file_name, tables->name)) append_file_to_dir(&lex->create_info.index_file_name, tables->name))
...@@ -1301,6 +1304,7 @@ mysql_execute_command(void) ...@@ -1301,6 +1304,7 @@ mysql_execute_command(void)
res=-1; res=-1;
break; break;
} }
#endif
if (select_lex->item_list.elements) // With select if (select_lex->item_list.elements) // With select
{ {
select_result *result; select_result *result;
......
...@@ -3213,7 +3213,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value) ...@@ -3213,7 +3213,7 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
} }
} }
*cond_value=Item::COND_OK; *cond_value=Item::COND_OK;
return cond; /* Point at next and level */ return cond; // Point at next and level
} }
/* /*
......
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