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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c5aa8fea
Commit
c5aa8fea
authored
Dec 22, 2006
by
tsmith/tim@siva.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into siva.hindu.god:/usr/home/tim/m/bk/51
parents
8075fc44
7245cb3d
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
104 additions
and
18 deletions
+104
-18
mysql-test/include/have_multi_ndb.inc
mysql-test/include/have_multi_ndb.inc
+4
-0
mysql-test/include/have_ndb.inc
mysql-test/include/have_ndb.inc
+4
-0
mysql-test/include/ndb_not_readonly.inc
mysql-test/include/ndb_not_readonly.inc
+31
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
mysql-test/r/ctype_hebrew.result
mysql-test/r/ctype_hebrew.result
+11
-0
mysql-test/t/ctype_hebrew.test
mysql-test/t/ctype_hebrew.test
+16
-0
mysql-test/t/rpl_openssl.test
mysql-test/t/rpl_openssl.test
+4
-0
sql/share/charsets/hebrew.xml
sql/share/charsets/hebrew.xml
+2
-2
sql/sql_plugin.cc
sql/sql_plugin.cc
+11
-10
strings/conf_to_src.c
strings/conf_to_src.c
+8
-1
strings/ctype-extra.c
strings/ctype-extra.c
+12
-4
No files found.
mysql-test/include/have_multi_ndb.inc
View file @
c5aa8fea
...
...
@@ -24,5 +24,9 @@ flush tables;
select
support
=
'Enabled'
as
`TRUE`
from
information_schema
.
engines
where
engine
=
'ndbcluster'
;
enable_query_log
;
# Check should be here as well...
# # Check that second master mysqld has come out of redonly mode
# --source include/ndb_not_readonly.inc
# Set the default connection to 'server1'
connection
server1
;
mysql-test/include/have_ndb.inc
View file @
c5aa8fea
...
...
@@ -4,4 +4,8 @@ disable_query_log;
select
support
=
'Enabled'
as
`TRUE`
from
information_schema
.
engines
where
engine
=
'ndbcluster'
;
enable_query_log
;
# Check that master mysqld has come out of redonly mode
--
source
include
/
ndb_not_readonly
.
inc
mysql-test/include/ndb_not_readonly.inc
0 → 100644
View file @
c5aa8fea
# Check that server has come out ot readonly mode
--
disable_query_log
let
$counter
=
100
;
let
$mysql_errno
=
1
;
while
(
$mysql_errno
)
{
--
error
0
,
1005
create
table
check_read_only
(
a
int
)
engine
=
NDB
;
sleep
0.1
;
if
(
!
$counter
)
{
die
(
"Failed while waiting for mysqld to come out of readonly mode"
);
}
dec
$counter
;
}
let
$counter
=
100
;
let
$mysql_errno
=
1
;
while
(
$mysql_errno
)
{
--
error
0
,
1036
insert
into
check_read_only
values
(
1
);
sleep
0.1
;
if
(
!
$counter
)
{
die
(
"Failed while waiting for mysqld to come out of readonly mode"
);
}
dec
$counter
;
}
drop
table
check_read_only
;
--
enable_query_log
mysql-test/mysql-test-run.pl
View file @
c5aa8fea
...
...
@@ -237,7 +237,7 @@ our $opt_mark_progress;
our
$opt_skip
;
our
$opt_skip_rpl
;
our
$max_slave_num
=
0
;
our
$max_master_num
=
0
;
our
$max_master_num
=
1
;
our
$use_innodb
;
our
$opt_skip_test
;
our
$opt_skip_im
;
...
...
mysql-test/r/ctype_hebrew.result
0 → 100644
View file @
c5aa8fea
DROP TABLE IF EXISTS t1;
SET NAMES hebrew;
CREATE TABLE t1 (a char(1)) DEFAULT CHARSET=hebrew;
INSERT INTO t1 VALUES (0xFD),(0xFE);
ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
SELECT HEX(a) FROM t1;
HEX(a)
E2808E
E2808F
DROP TABLE t1;
End of 4.1 tests
mysql-test/t/ctype_hebrew.test
0 → 100644
View file @
c5aa8fea
#
# BUG #24037: Lossy Hebrew to Unicode conversion
#
# Test if LRM and RLM characters are correctly converted to UTF-8
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
SET
NAMES
hebrew
;
CREATE
TABLE
t1
(
a
char
(
1
))
DEFAULT
CHARSET
=
hebrew
;
INSERT
INTO
t1
VALUES
(
0xFD
),(
0xFE
);
ALTER
TABLE
t1
CONVERT
TO
CHARACTER
SET
utf8
;
SELECT
HEX
(
a
)
FROM
t1
;
DROP
TABLE
t1
;
--
echo
End
of
4.1
tests
mysql-test/t/rpl_openssl.test
View file @
c5aa8fea
# TODO: THIS TEST DOES NOT WORK ON WINDOWS
# This should be fixed.
--
source
include
/
not_windows
.
inc
source
include
/
have_openssl
.
inc
;
source
include
/
master
-
slave
.
inc
;
...
...
sql/share/charsets/hebrew.xml
View file @
c5aa8fea
...
...
@@ -40,7 +40,7 @@
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
02 02 02 02 02 02 02 02 02 02 02 00 00
00 0
0 00
02 02 02 02 02 02 02 02 02 02 02 00 00
20 2
0 00
</map>
</ctype>
...
...
@@ -106,7 +106,7 @@
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 2017
05D0 05D1 05D2 05D3 05D4 05D5 05D6 05D7 05D8 05D9 05DA 05DB 05DC 05DD 05DE 05DF
05E0 05E1 05E2 05E3 05E4 05E5 05E6 05E7 05E8 05E9 05EA 0000 0000
0000 0000
0000
05E0 05E1 05E2 05E3 05E4 05E5 05E6 05E7 05E8 05E9 05EA 0000 0000
200E 200F
0000
</map>
</unicode>
...
...
sql/sql_plugin.cc
View file @
c5aa8fea
...
...
@@ -951,29 +951,30 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
state_mask
=
~
state_mask
;
// do it only once
rw_rdlock
(
&
THR_LOCK_plugin
);
total
=
type
==
MYSQL_ANY_PLUGIN
?
plugin_array
.
elements
:
plugin_hash
[
type
].
records
;
/*
Do the alloca out here in case we do have a working alloca:
leaving the nested stack frame invalidates alloca allocation.
*/
plugins
=
(
struct
st_plugin_int
**
)
my_alloca
(
total
*
sizeof
(
*
plugins
));
if
(
type
==
MYSQL_ANY_PLUGIN
)
{
total
=
plugin_array
.
elements
;
plugins
=
(
struct
st_plugin_int
**
)
my_alloca
(
total
*
sizeof
(
*
plugins
));
for
(
idx
=
0
;
idx
<
total
;
idx
++
)
{
plugin
=
dynamic_element
(
&
plugin_array
,
idx
,
struct
st_plugin_int
*
);
if
(
plugin
->
state
&
state_mask
)
continue
;
plugins
[
idx
]
=
plugin
;
plugins
[
idx
]
=
!
(
plugin
->
state
&
state_mask
)
?
plugin
:
NULL
;
}
}
else
{
HASH
*
hash
=
&
plugin_hash
[
type
];
total
=
hash
->
records
;
plugins
=
(
struct
st_plugin_int
**
)
my_alloca
(
total
*
sizeof
(
*
plugins
));
HASH
*
hash
=
plugin_hash
+
type
;
for
(
idx
=
0
;
idx
<
total
;
idx
++
)
{
plugin
=
(
struct
st_plugin_int
*
)
hash_element
(
hash
,
idx
);
if
(
plugin
->
state
&
state_mask
)
continue
;
plugins
[
idx
]
=
plugin
;
plugins
[
idx
]
=
!
(
plugin
->
state
&
state_mask
)
?
plugin
:
NULL
;
}
}
rw_unlock
(
&
THR_LOCK_plugin
);
...
...
@@ -984,7 +985,7 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
{
rw_rdlock
(
&
THR_LOCK_plugin
);
for
(
uint
i
=
idx
;
i
<
total
;
i
++
)
if
(
plugins
[
i
]
->
state
&
state_mask
)
if
(
plugins
[
i
]
&&
plugins
[
i
]
->
state
&
state_mask
)
plugins
[
i
]
=
0
;
rw_unlock
(
&
THR_LOCK_plugin
);
}
...
...
strings/conf_to_src.c
View file @
c5aa8fea
...
...
@@ -276,7 +276,14 @@ main(int argc, char **argv __attribute__((unused)))
}
}
fprintf
(
f
,
"/*
\n
"
);
fprintf
(
f
,
" This file was generated by the conf_to_src utility. "
"Do not edit it directly,
\n
"
);
fprintf
(
f
,
" edit the XML definitions in sql/share/charsets/ instead.
\n\n
"
);
fprintf
(
f
,
" To re-generate, run the following in the strings/ "
"directory:
\n
"
);
fprintf
(
f
,
" ./conf_to_src ../sql/share/charsets/ > FILE
\n
"
);
fprintf
(
f
,
"*/
\n\n
"
);
fprintf
(
f
,
"#include <my_global.h>
\n
"
);
fprintf
(
f
,
"#include <m_ctype.h>
\n\n
"
);
...
...
strings/ctype-extra.c
View file @
c5aa8fea
/*
This file was generated by the conf_to_src utility. Do not edit it directly,
edit the XML definitions in sql/share/charsets/ instead.
To re-generate, run the following in the strings/ directory:
./conf_to_src ../sql/share/charsets/ > FILE
*/
#include <my_global.h>
#include <m_ctype.h>
...
...
@@ -1169,7 +1177,7 @@ uchar ctype_hebrew_general_ci[] = {
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x00
,
0x00
,
0x
00
,
0x0
0
,
0x00
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x00
,
0x00
,
0x
20
,
0x2
0
,
0x00
};
uchar
to_lower_hebrew_general_ci
[]
=
{
...
...
@@ -1261,7 +1269,7 @@ uint16 to_uni_hebrew_general_ci[] = {
0x05D0
,
0x05D1
,
0x05D2
,
0x05D3
,
0x05D4
,
0x05D5
,
0x05D6
,
0x05D7
,
0x05D8
,
0x05D9
,
0x05DA
,
0x05DB
,
0x05DC
,
0x05DD
,
0x05DE
,
0x05DF
,
0x05E0
,
0x05E1
,
0x05E2
,
0x05E3
,
0x05E4
,
0x05E5
,
0x05E6
,
0x05E7
,
0x05E8
,
0x05E9
,
0x05EA
,
0x0000
,
0x0000
,
0x
0000
,
0x0000
,
0x0000
0x05E8
,
0x05E9
,
0x05EA
,
0x0000
,
0x0000
,
0x
200E
,
0x200F
,
0x0000
};
#endif
...
...
@@ -5100,7 +5108,7 @@ uchar ctype_hebrew_bin[] = {
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x00
,
0x00
,
0x
00
,
0x0
0
,
0x00
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x02
,
0x00
,
0x00
,
0x
20
,
0x2
0
,
0x00
};
uchar
to_lower_hebrew_bin
[]
=
{
...
...
@@ -5173,7 +5181,7 @@ uint16 to_uni_hebrew_bin[] = {
0x05D0
,
0x05D1
,
0x05D2
,
0x05D3
,
0x05D4
,
0x05D5
,
0x05D6
,
0x05D7
,
0x05D8
,
0x05D9
,
0x05DA
,
0x05DB
,
0x05DC
,
0x05DD
,
0x05DE
,
0x05DF
,
0x05E0
,
0x05E1
,
0x05E2
,
0x05E3
,
0x05E4
,
0x05E5
,
0x05E6
,
0x05E7
,
0x05E8
,
0x05E9
,
0x05EA
,
0x0000
,
0x0000
,
0x
0000
,
0x0000
,
0x0000
0x05E8
,
0x05E9
,
0x05EA
,
0x0000
,
0x0000
,
0x
200E
,
0x200F
,
0x0000
};
#endif
...
...
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