mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge mysql.com:/home/jonas/src/mysql-4.1
into mysql.com:/home/jonas/src/mysql-5.0 BitKeeper/deleted/.del-ctype-cp932.c: Auto merged configure.in: Auto merged libmysqld/Makefile.am: Auto merged mysql-test/r/ctype_ucs.result: Auto merged mysql-test/t/ctype_ucs.test: Auto merged strings/ctype-big5.c: Auto merged strings/ctype-ucs2.c: Auto merged
This commit is contained in:
@@ -57,6 +57,7 @@ case "$cpu_family--$model_name" in
|
||||
;;
|
||||
*Pentium*M*pro*)
|
||||
cpu_flag="pentium-m";
|
||||
cpu_flag_old="pentium";
|
||||
;;
|
||||
*Athlon*64*)
|
||||
cpu_flag="athlon64";
|
||||
|
@@ -141,8 +141,11 @@ AC_ARG_WITH(darwin-mwcc,
|
||||
export CC CXX LD AR RANLIB
|
||||
AC_SUBST(AR)
|
||||
AC_SUBST(RANLIB)
|
||||
with_darwin_mwcc=yes
|
||||
])
|
||||
|
||||
AM_CONDITIONAL(DARWIN_MWCC, test x$with_darwin_mwcc = xyes)
|
||||
|
||||
if test "x${CFLAGS-}" = x ; then
|
||||
cflags_is_set=no
|
||||
else
|
||||
|
@@ -87,6 +87,9 @@ INC_LIB= $(top_builddir)/regex/libregex.a \
|
||||
# generate a total libmysqld.a from all library files,
|
||||
|
||||
libmysqld.a: libmysqld_int.a $(INC_LIB)
|
||||
if DARWIN_MWCC
|
||||
mwld -lib -o $@ libmysqld_int.a `ls -1 $(INC_LIB) | sort -u`
|
||||
else
|
||||
if test "$(host_os)" = "netware" ; \
|
||||
then \
|
||||
$(libmysqld_a_AR) libmysqld.a libmysqld_int.a $(INC_LIB) ; \
|
||||
@@ -108,7 +111,7 @@ libmysqld.a: libmysqld_int.a $(INC_LIB)
|
||||
rm -f tmp/* ; \
|
||||
$(RANLIB) libmysqld.a ; \
|
||||
fi
|
||||
|
||||
endif
|
||||
|
||||
## XXX: any time the client interface changes, we'll need to bump
|
||||
## the version info for libmysqld; however, it's possible for the
|
||||
|
@@ -606,6 +606,24 @@ ucs2_bin 00610009
|
||||
ucs2_bin 0061
|
||||
ucs2_bin 00610020
|
||||
drop table t1;
|
||||
select hex(substr(_ucs2 0x00e400e50068,1));
|
||||
hex(substr(_ucs2 0x00e400e50068,1))
|
||||
00E400E50068
|
||||
select hex(substr(_ucs2 0x00e400e50068,2));
|
||||
hex(substr(_ucs2 0x00e400e50068,2))
|
||||
00E50068
|
||||
select hex(substr(_ucs2 0x00e400e50068,3));
|
||||
hex(substr(_ucs2 0x00e400e50068,3))
|
||||
0068
|
||||
select hex(substr(_ucs2 0x00e400e50068,-1));
|
||||
hex(substr(_ucs2 0x00e400e50068,-1))
|
||||
0068
|
||||
select hex(substr(_ucs2 0x00e400e50068,-2));
|
||||
hex(substr(_ucs2 0x00e400e50068,-2))
|
||||
00E50068
|
||||
select hex(substr(_ucs2 0x00e400e50068,-3));
|
||||
hex(substr(_ucs2 0x00e400e50068,-3))
|
||||
00E400E50068
|
||||
SET NAMES latin1;
|
||||
SET collation_connection='ucs2_swedish_ci';
|
||||
CREATE TABLE t1 (Field1 int(10) default '0');
|
||||
|
@@ -376,6 +376,16 @@ SET NAMES latin1;
|
||||
SET collation_connection='ucs2_bin';
|
||||
-- source include/ctype_filesort.inc
|
||||
|
||||
#
|
||||
# Bug#10344 Some string functions fail for UCS2
|
||||
#
|
||||
select hex(substr(_ucs2 0x00e400e50068,1));
|
||||
select hex(substr(_ucs2 0x00e400e50068,2));
|
||||
select hex(substr(_ucs2 0x00e400e50068,3));
|
||||
select hex(substr(_ucs2 0x00e400e50068,-1));
|
||||
select hex(substr(_ucs2 0x00e400e50068,-2));
|
||||
select hex(substr(_ucs2 0x00e400e50068,-3));
|
||||
|
||||
SET NAMES latin1;
|
||||
#
|
||||
# Bug#8235
|
||||
|
@@ -6301,7 +6301,7 @@ uint my_well_formed_len_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
const char *emb= e - 1; /* Last possible end of an MB character */
|
||||
|
||||
*error= 0;
|
||||
while (pos && b < e)
|
||||
while (pos-- && b < e)
|
||||
{
|
||||
if ((uchar) b[0] < 128)
|
||||
{
|
||||
|
@@ -1267,7 +1267,7 @@ uint my_charpos_ucs2(CHARSET_INFO *cs __attribute__((unused)),
|
||||
const char *e __attribute__((unused)),
|
||||
uint pos)
|
||||
{
|
||||
return pos*2;
|
||||
return pos > e - b ? e - b + 2 : pos * 2;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user