Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Changed to use my_global.h
Browse files Browse the repository at this point in the history
Fixed problem with LIKE with latin1_de
Added parsing support of UNSIGNED LONG LONG
  • Loading branch information
monty@hundin.mysql.fi committed Sep 13, 2001
1 parent e28586e commit 7cadc6e
Show file tree
Hide file tree
Showing 143 changed files with 261 additions and 179 deletions.
16 changes: 15 additions & 1 deletion Docs/manual.texi
Original file line number Diff line number Diff line change
Expand Up @@ -9958,6 +9958,13 @@ CC=fcc CFLAGS="-O -K fast -K lib -K omitfp -Kpreex -D_GNU_SOURCE -DCONST=const -

MySQL needs at least Linux Version 2.0.

@strong{WARNING}:
We have have reports from some MySQL users that they have got serious
stability problems with MySQL with Linux kernel 2.2.14. If you are
using this kernel you should upgrade to 2.2.19 (or newer) or to a 2.4
kernel. If you have a multi-cpu box, then you should seriously consider
using 2.4 as this will give you a significant speed boost.

The binary release is linked with @code{-static}, which means you do not
normally need to worry about which version of the system libraries you
have. You need not install LinuxThreads, either. A program linked with
Expand Down Expand Up @@ -28091,6 +28098,9 @@ You can always store an exact integer value in a @code{BIGINT} column by
storing it as a string, as there is in this case there will be no
intermediate double representation.
@item
In MySQL 4.0 you can use integers to store big unsigned values in a
@code{BIGINT} string.
@item
@samp{-}, @samp{+}, and @samp{*} will use @code{BIGINT} arithmetic when
both arguments are @code{INTEGER} values! This means that if you
multiply two big integers (or results from functions that return
Expand Down Expand Up @@ -29151,7 +29161,9 @@ certain circumstances:
@item
If you insert an invalid value into an @code{ENUM} (that is, a string not
present in the list of allowed values), the empty string is inserted
instead as a special error value.
instead as a special error value. This string can be distinguished from a
'normal' empty string by the fact that this string has the numerical value
0. More about this later.

@item
If an @code{ENUM} is declared @code{NULL}, @code{NULL} is also a legal value
Expand Down Expand Up @@ -46933,6 +46945,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.

@itemize @bullet
@item
Fixed handling of big unsigned bigint constants.
@item
New character set @code{latin_de} which provides correct German sorting.
@item
@code{TRUNCATE TABLE} and @code{DELETE FROM table_name} are now separate
Expand Down
2 changes: 1 addition & 1 deletion client/client_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/* Common defines for all clients */

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <mysql.h>
Expand Down
2 changes: 1 addition & 1 deletion client/completion_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Small portability changes by Monty. Changed also to use my_malloc/my_free
*/

#include <global.h>
#include <my_global.h>
#include <m_string.h>
#undef SAFEMALLOC // Speed things up
#include <my_sys.h>
Expand Down
2 changes: 1 addition & 1 deletion client/errmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* Error messages for MySQL clients */
/* error messages for the demon is in share/language/errmsg.sys */

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include "errmsg.h"

Expand Down
2 changes: 1 addition & 1 deletion client/get_password.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
** Ask for a password from tty
** This is an own file to avoid conflicts with curses
*/
#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include "mysql.h"
#include <m_string.h>
Expand Down
2 changes: 1 addition & 1 deletion client/mysqldump.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#define DUMP_VERSION "8.16"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
Expand Down
2 changes: 1 addition & 1 deletion client/mysqlshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#define SHOW_VERSION "8.3"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include "mysql.h"
Expand Down
2 changes: 1 addition & 1 deletion client/mysqltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#define MTEST_VERSION "1.10"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <mysql.h>
Expand Down
2 changes: 1 addition & 1 deletion client/password.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
This saves a hashed number as a string in the password field.
*****************************************************************************/

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include "mysql.h"
Expand Down
2 changes: 1 addition & 1 deletion client/readline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/* readline for batch mode */

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include "my_readline.h"
Expand Down
2 changes: 1 addition & 1 deletion client/sql_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#pragma implementation // gcc: Class implementation
#endif

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
Expand Down
2 changes: 1 addition & 1 deletion client/thimble.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "my_global.h"
#include "my_my_global.h"

static void spawn_stern_thread(pthread_t *t);
static int act_goofy(void);
Expand Down
2 changes: 1 addition & 1 deletion client/thread_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA */

#include <global.h>
#include <my_global.h>

#ifndef THREAD

Expand Down
2 changes: 1 addition & 1 deletion dbug/dbug.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#ifdef DBUG_OFF
#undef DBUG_OFF
#endif
#include <global.h>
#include <my_global.h>
#include <m_string.h>
#include <errno.h>
#if defined(MSDOS) || defined(__WIN__)
Expand Down
2 changes: 1 addition & 1 deletion dbug/dbug_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* if invoked with -v flag.
*/

#include <global.h>
#include <my_global.h>
#include <m_string.h>

static char *my_name;
Expand Down
2 changes: 1 addition & 1 deletion dbug/example1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include <global.h>
#include <my_global.h>

main (argc, argv)
int argc;
Expand Down
2 changes: 1 addition & 1 deletion dbug/example2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include <global.h>
#include <my_global.h>

int debug = 0;

Expand Down
2 changes: 1 addition & 1 deletion dbug/example3.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include <global.h>
#include <my_global.h>

main (argc, argv)
int argc;
Expand Down
2 changes: 1 addition & 1 deletion dbug/factorial.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#undef DBUG_OFF
#endif

#include <global.h>
#include <my_global.h>

int factorial (
register int value)
Expand Down
2 changes: 1 addition & 1 deletion dbug/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#undef DBUG_OFF
#endif

#include <global.h> /* This includes dbug.h */
#include <my_global.h> /* This includes dbug.h */

int main (argc, argv)
int argc;
Expand Down
2 changes: 1 addition & 1 deletion dbug/sanity.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Declarate _sanity() if not declared in main program */

#include <global.h>
#include <my_global.h>

extern int _sanity(const char *file,uint line);

Expand Down
2 changes: 1 addition & 1 deletion extra/comp_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/* Saves all errmesg in a header file, updated by me, in a compact file */

#include <global.h>
#include <my_global.h>
#include <m_ctype.h>
#include <my_sys.h>
#include <m_string.h>
Expand Down
2 changes: 1 addition & 1 deletion extra/my_print_defaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
** Written by Monty
*/

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <getopt.h>

Expand Down
2 changes: 1 addition & 1 deletion extra/perror.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#define PERROR_VERSION "2.6"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion extra/replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/

#define DONT_USE_RAID
#include <global.h>
#include <my_global.h>
#include <m_ctype.h>
#include <my_sys.h>
#include <m_string.h>
Expand Down
2 changes: 1 addition & 1 deletion extra/resolve_stack_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

#define DONT_USE_RAID
#include <global.h>
#include <my_global.h>
#include <m_ctype.h>
#include <my_sys.h>
#include <m_string.h>
Expand Down
2 changes: 1 addition & 1 deletion extra/resolveip.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#define RESOLVE_VERSION "2.0"

#include <global.h>
#include <my_global.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifndef HAVE_BROKEN_NETINET_INCLUDES
Expand Down
2 changes: 1 addition & 1 deletion fs/libmysqlfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#include "CorbaFS.h"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
Expand Down
2 changes: 1 addition & 1 deletion fs/mysqlcorbafs.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#include "CorbaFS.h"

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
Expand Down
2 changes: 1 addition & 1 deletion heap/hp_test1.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
raderas.
*/

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include "heap.h"
Expand Down
11 changes: 3 additions & 8 deletions include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pkginclude_HEADERS = dbug.h m_string.h my_sys.h mysql.h mysql_com.h \
my_global.h my_net.h \
sslopt-case.h sslopt-longopts.h sslopt-usage.h \
sslopt-vars.h $(BUILT_SOURCES)
noinst_HEADERS = global.h config-win.h \
noinst_HEADERS = config-win.h \
nisam.h heap.h merge.h my_bitmap.h\
myisam.h myisampack.h myisammrg.h ft_global.h\
my_dir.h mysys_err.h my_base.h \
Expand All @@ -32,12 +32,12 @@ noinst_HEADERS = global.h config-win.h \
mysql_version.h.in

# mysql_version.h are generated
SUPERCLEANFILES = mysql_version.h my_global.h my_config.h
SUPERCLEANFILES = mysql_version.h my_config.h

# Some include files that may be moved and patched by configure
DISTCLEANFILES = sched.h

all-local: my_global.h my_config.h
all-local: my_config.h

# Since we include my_config.h it better exist from the beginning
link_sources:
Expand All @@ -48,11 +48,6 @@ link_sources:
my_config.h: ../config.h
$(CP) ../config.h my_config.h

# This should be changed in the source and removed.
my_global.h: global.h
$(RM) -f my_global.h
$(CP) global.h my_global.h

# These files should not be included in distributions since they are
# generated by configure from the .h.in files
dist-hook:
Expand Down
2 changes: 1 addition & 1 deletion include/m_ctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/*
A better inplementation of the UNIX ctype(3) library.
Notes: global.h should be included before ctype.h
Notes: my_global.h should be included before ctype.h
*/

#ifndef _m_ctype_h
Expand Down
2 changes: 1 addition & 1 deletion include/my_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef stdin /* Included first in handler */
#define USES_TYPES /* my_dir with sys/types is included */
#define CHSIZE_USED
#include <global.h>
#include <my_global.h>
#include <my_dir.h> /* This includes types */
#include <my_sys.h>
#include <m_string.h>
Expand Down
2 changes: 1 addition & 1 deletion innobase/include/univ.i
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ be defined:
/* Include two header files from MySQL to make the Unix flavor used
in compiling more Posix-compatible. We assume that 'innobase' is a
subdirectory of 'mysql'. */
#include <global.h>
#include <my_global.h>
#include <my_pthread.h>

/* Include <sys/stat.h> to get S_I... macros defined for os0file.c */
Expand Down
2 changes: 1 addition & 1 deletion libmysql/dll.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
** Handling initialization of the dll library
*/

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include <my_pthread.h>

Expand Down
2 changes: 1 addition & 1 deletion libmysql/errmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* Error messages for MySQL clients */
/* error messages for the daemon is in share/language/errmsg.sys */

#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include "errmsg.h"

Expand Down
2 changes: 1 addition & 1 deletion libmysql/get_password.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
** Ask for a password from tty
** This is an own file to avoid conflicts with curses
*/
#include <global.h>
#include <my_global.h>
#include <my_sys.h>
#include "mysql.h"
#include <m_string.h>
Expand Down
Loading

0 comments on commit 7cadc6e

Please sign in to comment.