diff options
author | unknown <monty@hundin.mysql.fi> | 2002-03-12 11:38:22 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-03-12 11:38:22 +0200 |
commit | 4c221321b624e55238c641b515e24ad1091cdc93 (patch) | |
tree | c217663c9f7a4fba0c5a00acb72b3e980954f780 /include | |
parent | c13baf70ec937501389ed6e9f94c98635f1c1b76 (diff) | |
download | mariadb-git-4c221321b624e55238c641b515e24ad1091cdc93.tar.gz |
Added help for --local-infile
Fix for bug on intel where (int32) 1 << 32 == 1, which gave problems when using 32 keys.
Allow SET PASSWORD for anonymous user
Docs/manual.texi:
Changelog
client/mysql.cc:
Added help for --local-infile
client/mysqlimport.c:
Merge with 4.0.
Patch for LOCAL INFILE handling
configure.in:
cleanup
include/global.h:
Fix for bug on intel where (int32) 1 << 32 == 1
mysql-test/r/create.result:
Test of CREATE TABLE with 32 keys
mysql-test/t/create.test:
Test of CREATE TABLE with 32 keys
scripts/mysqlhotcopy.sh:
Patch for databasenames with space.
sql/ha_isam.cc:
Fix for bug on intel where (int32) 1 << 32 == 1
sql/ha_myisam.cc:
Fix for bug on intel where (int32) 1 << 32 == 1
sql/ha_myisammrg.cc:
Fix for bug on intel where (int32) 1 << 32 == 1
sql/mysqld.cc:
Added help for --local-infile
sql/sql_acl.cc:
Allow SET PASSWORD of anonymous user
sql/table.cc:
Fix for bug on intel where (int32) 1 << 32 == 1
Diffstat (limited to 'include')
-rw-r--r-- | include/global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index b8b118cd855..a58179e6759 100644 --- a/include/global.h +++ b/include/global.h @@ -281,6 +281,7 @@ typedef unsigned short ushort; #define set_if_bigger(a,b) { if ((a) < (b)) (a)=(b); } #define set_if_smaller(a,b) { if ((a) > (b)) (a)=(b); } #define test_all_bits(a,b) (((a) & (b)) == (b)) +#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1)) #define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0]))) #ifndef HAVE_RINT #define rint(A) floor((A)+0.5) |