Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
834e3314
Commit
834e3314
authored
Mar 05, 2008
by
joerg@trift2
Browse files
Options
Browse Files
Download
Plain Diff
Merge trift2.:/MySQL/M51/mysql-5.1
into trift2.:/MySQL/M51/push-5.1
parents
d4025ce1
40d4d3f1
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
42 additions
and
84 deletions
+42
-84
CMakeLists.txt
CMakeLists.txt
+8
-0
config/ac-macros/character_sets.m4
config/ac-macros/character_sets.m4
+3
-3
config/ac-macros/ha_ndbcluster.m4
config/ac-macros/ha_ndbcluster.m4
+3
-3
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+1
-1
configure.in
configure.in
+13
-3
include/config-win.h
include/config-win.h
+0
-65
include/my_global.h
include/my_global.h
+5
-6
mysql-test/suite/funcs_2/t/disabled.def
mysql-test/suite/funcs_2/t/disabled.def
+6
-0
storage/ndb/src/common/util/SocketServer.cpp
storage/ndb/src/common/util/SocketServer.cpp
+1
-1
support-files/MacOSX/Info.plist.sh
support-files/MacOSX/Info.plist.sh
+1
-1
support-files/MacOSX/Makefile.am
support-files/MacOSX/Makefile.am
+1
-1
No files found.
CMakeLists.txt
View file @
834e3314
...
...
@@ -153,6 +153,14 @@ IF(WIN32)
ADD_DEFINITIONS
(
"-D_WINDOWS -D__WIN__ -D_CRT_SECURE_NO_DEPRECATE"
)
ENDIF
(
WIN32
)
# This definition is necessary to work around a bug with Intellisense described
# here: http://tinyurl.com/2cb428. Syntax highlighting is important for proper
# debugger functionality.
IF
(
CMAKE_SIZEOF_VOID_P MATCHES 8
)
MESSAGE
(
STATUS
"Detected 64-bit platform."
)
ADD_DEFINITIONS
(
"-D_WIN64"
)
ENDIF
(
CMAKE_SIZEOF_VOID_P MATCHES 8
)
IF
(
EMBED_MANIFESTS
)
# Search for the tools (mt, makecat, signtool) necessary for embedding
# manifests and signing executables with the MySQL AB authenticode cert.
...
...
config/ac-macros/character_sets.m4
View file @
834e3314
...
...
@@ -199,7 +199,7 @@ do
;;
*)
AC_MSG_ERROR([Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
See the Installation chapter in the Reference Manual.])
;
See the Installation chapter in the Reference Manual.])
esac
done
...
...
@@ -380,7 +380,7 @@ case $default_charset in
;;
*)
AC_MSG_ERROR([Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
See the Installation chapter in the Reference Manual.])
;
See the Installation chapter in the Reference Manual.])
esac
if test "$default_collation" = default; then
...
...
@@ -405,7 +405,7 @@ else
Collation $default_collation is not valid for character set $default_charset.
Valid collations are: $default_charset_collations.
See the Installation chapter in the Reference Manual.
])
;
])
fi
AC_DEFINE_UNQUOTED([MYSQL_DEFAULT_CHARSET_NAME], ["$default_charset"],
...
...
config/ac-macros/ha_ndbcluster.m4
View file @
834e3314
...
...
@@ -2,9 +2,9 @@ dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_NDBCLUSTER
dnl ---------------------------------------------------------------------------
NDB_VERSION_MAJOR=`echo $MYSQL_N
O_DASH
_VERSION | cut -d. -f1`
NDB_VERSION_MINOR=`echo $MYSQL_N
O_DASH
_VERSION | cut -d. -f2`
NDB_VERSION_BUILD=`echo $MYSQL_N
O_DASH
_VERSION | cut -d. -f3`
NDB_VERSION_MAJOR=`echo $MYSQL_N
UMERIC
_VERSION | cut -d. -f1`
NDB_VERSION_MINOR=`echo $MYSQL_N
UMERIC
_VERSION | cut -d. -f2`
NDB_VERSION_BUILD=`echo $MYSQL_N
UMERIC
_VERSION | cut -d. -f3`
NDB_VERSION_STATUS=`echo $VERSION | sed 's/^[[-.0-9]]*//'`
TEST_NDBCLUSTER=""
...
...
config/ac-macros/misc.m4
View file @
834e3314
...
...
@@ -631,7 +631,7 @@ case $SYSTEM_TYPE in
esac
if test "$CXX_VERSION"
then
AC_MSG_CHECKING("C++ compiler version")
;
AC_MSG_CHECKING("C++ compiler version")
AC_MSG_RESULT("$CXX $CXX_VERSION")
fi
AC_SUBST(CXX_VERSION)
...
...
configure.in
View file @
834e3314
...
...
@@ -23,9 +23,19 @@ NDB_SHARED_LIB_VERSION=$NDB_SHARED_LIB_MAJOR_VERSION:0:0
# Set all version vars based on $VERSION. How do we do this more elegant ?
# Remember that regexps needs to quote [ and ] since this is run through m4
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|[[a-z]]*-.*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
MYSQL_VERSION_ID
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
's|[[^0-9.]].*$||;s|$|.|'
|
sed
-e
's/[[^0-9.]]//g; s/\./ /g; s/ \([[0-9]]\) / 0\\1 /g; s/ //g'
`
# We take some made up examples
#
# VERSION 5.1.40sp1-alpha 5.0.34a
# MYSQL_NO_DASH_VERSION 5.1.40sp1 5.0.34a
# MYSQL_NUMERIC_VERSION 5.1.40 5.0.34
# MYSQL_BASE_VERSION 5.1 5.0
# MYSQL_VERSION_ID 50140 50034
#
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|-.*
$|
|"
`
MYSQL_NUMERIC_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|[[a-z]][[a-z0-9]]*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NUMERIC_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
MYSQL_VERSION_ID
=
`
echo
$MYSQL_NUMERIC_VERSION
|
\
awk
-F
.
'{printf "%d%0.2d%0.2d", $1, $2, $3}'
`
# Add previous major version for debian package upgrade path
MYSQL_PREVIOUS_BASE_VERSION
=
5.0
...
...
include/config-win.h
View file @
834e3314
...
...
@@ -260,71 +260,6 @@ inline double ulonglong2double(ulonglong value)
#define STACK_DIRECTION -1
/* Optimized store functions for Intel x86 */
#ifndef _WIN64
#define sint2korr(A) (*((int16 *) (A)))
#define sint3korr(A) ((int32) ((((uchar) (A)[2]) & 128) ? \
(((uint32) 255L << 24) | \
(((uint32) (uchar) (A)[2]) << 16) |\
(((uint32) (uchar) (A)[1]) << 8) | \
((uint32) (uchar) (A)[0])) : \
(((uint32) (uchar) (A)[2]) << 16) |\
(((uint32) (uchar) (A)[1]) << 8) | \
((uint32) (uchar) (A)[0])))
#define sint4korr(A) (*((long *) (A)))
#define uint2korr(A) (*((uint16 *) (A)))
/*
ATTENTION !
Please, note, uint3korr reads 4 bytes (not 3) !
It means, that you have to provide enough allocated space !
*/
#define uint3korr(A) (long) (*((unsigned int *) (A)) & 0xFFFFFF)
#define uint4korr(A) (*((unsigned long *) (A)))
#define uint5korr(A) ((ulonglong)(((uint32) ((uchar) (A)[0])) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[2])) << 16) +\
(((uint32) ((uchar) (A)[3])) << 24)) +\
(((ulonglong) ((uchar) (A)[4])) << 32))
#define uint6korr(A) ((ulonglong)(((uint32) ((uchar) (A)[0])) + \
(((uint32) ((uchar) (A)[1])) << 8) + \
(((uint32) ((uchar) (A)[2])) << 16) + \
(((uint32) ((uchar) (A)[3])) << 24)) + \
(((ulonglong) ((uchar) (A)[4])) << 32) + \
(((ulonglong) ((uchar) (A)[5])) << 40))
#define uint8korr(A) (*((ulonglong *) (A)))
#define sint8korr(A) (*((longlong *) (A)))
#define int2store(T,A) *((uint16*) (T))= (uint16) (A)
#define int3store(T,A) { *(T)= (uchar) ((A));\
*(T+1)=(uchar) (((uint) (A) >> 8));\
*(T+2)=(uchar) (((A) >> 16)); }
#define int4store(T,A) *((long *) (T))= (long) (A)
#define int5store(T,A) { *(T)= (uchar)((A));\
*((T)+1)=(uchar) (((A) >> 8));\
*((T)+2)=(uchar) (((A) >> 16));\
*((T)+3)=(uchar) (((A) >> 24)); \
*((T)+4)=(uchar) (((A) >> 32)); }
#define int6store(T,A) { *(T) =(uchar)((A)); \
*((T)+1)=(uchar) (((A) >> 8)); \
*((T)+2)=(uchar) (((A) >> 16)); \
*((T)+3)=(uchar) (((A) >> 24)); \
*((T)+4)=(uchar) (((A) >> 32)); \
*((T)+5)=(uchar) (((A) >> 40)); }
#define int8store(T,A) *((ulonglong *) (T))= (ulonglong) (A)
#define doubleget(V,M) do { *((long *) &V) = *((long*) M); \
*(((long *) &V)+1) = *(((long*) M)+1); } while(0)
#define doublestore(T,V) do { *((long *) T) = *((long*) &V); \
*(((long *) T)+1) = *(((long*) &V)+1); } while(0)
#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
#define floatstore(T,V) memcpy((uchar*)(T), (uchar*)(&V), sizeof(float))
#define floatget(V,M) memcpy((uchar*)(&V), (uchar*)(M), sizeof(float))
#define float8get(V,M) doubleget((V),(M))
#define float4store(V,M) memcpy((uchar*) V,(uchar*) (&M),sizeof(float))
#define float8store(V,M) doublestore((V),(M))
#endif
/* _WIN64 */
#define HAVE_PERROR
#define HAVE_VFPRINT
#define HAVE_RENAME
/* Have rename() as function */
...
...
include/my_global.h
View file @
834e3314
...
...
@@ -1139,7 +1139,7 @@ typedef char bool; /* Ordinary boolean values 0 1 */
*/
/* Optimized store functions for Intel x86 */
#if defined(__i386__)
&& !defined(_WIN64
)
#if defined(__i386__)
|| defined(_WIN32
)
#define sint2korr(A) (*((int16 *) (A)))
#define sint3korr(A) ((int32) ((((uchar) (A)[2]) & 128) ? \
(((uint32) 255L << 24) | \
...
...
@@ -1151,7 +1151,7 @@ typedef char bool; /* Ordinary boolean values 0 1 */
((uint32) (uchar) (A)[0])))
#define sint4korr(A) (*((long *) (A)))
#define uint2korr(A) (*((uint16 *) (A)))
#if
def HAVE_purify
#if
defined(HAVE_purify) && !defined(_WIN32)
#define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
(((uint32) ((uchar) (A)[2])) << 16))
...
...
@@ -1163,7 +1163,7 @@ typedef char bool; /* Ordinary boolean values 0 1 */
It means, that you have to provide enough allocated space !
*/
#define uint3korr(A) (long) (*((unsigned int *) (A)) & 0xFFFFFF)
#endif
#endif
/* HAVE_purify && !_WIN32 */
#define uint4korr(A) (*((uint32 *) (A)))
#define uint5korr(A) ((ulonglong)(((uint32) ((uchar) (A)[0])) +\
(((uint32) ((uchar) (A)[1])) << 8) +\
...
...
@@ -1214,9 +1214,8 @@ do { doubleget_union _tmp; \
#define floatstore(T,V) memcpy((uchar*)(T), (uchar*)(&V),sizeof(float))
#define floatget(V,M) memcpy((uchar*) &V,(uchar*) (M),sizeof(float))
#define float8store(V,M) doublestore((V),(M))
#e
ndif
/* __i386__ */
#e
lse
#ifndef sint2korr
/*
We're here if it's not a IA-32 architecture (Win32 and UNIX IA-32 defines
were done before)
...
...
@@ -1355,7 +1354,7 @@ do { doubleget_union _tmp; \
#define float8store(V,M) doublestore((V),(M))
#endif
/* WORDS_BIGENDIAN */
#endif
/*
sint2korr
*/
#endif
/*
__i386__ OR _WIN32
*/
/*
Macro for reading 32-bit integer from network byte order (big-endian)
...
...
mysql-test/suite/funcs_2/t/disabled.def
0 → 100644
View file @
834e3314
# Disabled by hhunger (2008-03-03) due to WL4204
innodb_charset : Due to bug#20447
myisam_charset : Due to bug#20477
memory_charset : Due to bug#20447
ndb_charset : Due to bug#20447
storage/ndb/src/common/util/SocketServer.cpp
View file @
834e3314
...
...
@@ -112,7 +112,7 @@ SocketServer::setup(SocketServer::Service * service,
const
int
on
=
1
;
if
(
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
const
char
*
)
&
on
,
sizeof
(
on
))
==
-
1
)
{
DBUG_PRINT
(
"error"
,(
"
g
etsockopt() - %d - %s"
,
DBUG_PRINT
(
"error"
,(
"
s
etsockopt() - %d - %s"
,
errno
,
strerror
(
errno
)));
NDB_CLOSE_SOCKET
(
sock
);
DBUG_RETURN
(
false
);
...
...
support-files/MacOSX/Info.plist.sh
View file @
834e3314
...
...
@@ -9,7 +9,7 @@
<key>CFBundleName</key>
<string>MySQL</string>
<key>CFBundleShortVersionString</key>
<string>@MYSQL_N
O_DASH
_VERSION@</string>
<string>@MYSQL_N
UMERIC
_VERSION@</string>
<key>IFPkgFlagAllowBackRev</key>
<
false
/>
<key>IFPkgFlagAuthorizationAction</key>
...
...
support-files/MacOSX/Makefile.am
View file @
834e3314
...
...
@@ -47,7 +47,7 @@ SUFFIXES = .sh
@
SED@
\
-e
's!@''prefix''@!
$(prefix)
!g'
\
-e
's!@''VERSION''@!@VERSION@!'
\
-e
's!@''MYSQL_N
O_DASH_VERSION''@!@MYSQL_NO_DASH
_VERSION@!'
\
-e
's!@''MYSQL_N
UMERIC_VERSION''@!@MYSQL_NUMERIC
_VERSION@!'
\
-e
's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!'
\
-e
's!@''MYSQLD_USER''@!@MYSQLD_USER@!'
\
$<
>
$@
-t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment