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
2322b2c2
Commit
2322b2c2
authored
Jan 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b15581
parents
cdd95674
7c87f77e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+8
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+10
-0
sql/field.cc
sql/field.cc
+3
-3
No files found.
mysql-test/r/ctype_utf8.result
View file @
2322b2c2
...
...
@@ -1070,3 +1070,11 @@ char(a)
1
2
drop table t1;
CREATE TABLE t1 (t TINYTEXT CHARACTER SET utf8);
INSERT INTO t1 VALUES(REPEAT('a', 100));
CREATE TEMPORARY TABLE t2 SELECT COALESCE(t) AS bug FROM t1;
SELECT LENGTH(bug) FROM t2;
LENGTH(bug)
100
DROP TABLE t2;
DROP TABLE t1;
mysql-test/t/ctype_utf8.test
View file @
2322b2c2
...
...
@@ -882,4 +882,14 @@ set names utf8;
select
distinct
char
(
a
)
from
t1
;
drop
table
t1
;
#
# Bug#15581: COALESCE function truncates mutli-byte TINYTEXT values
#
CREATE
TABLE
t1
(
t
TINYTEXT
CHARACTER
SET
utf8
);
INSERT
INTO
t1
VALUES
(
REPEAT
(
'a'
,
100
));
CREATE
TEMPORARY
TABLE
t2
SELECT
COALESCE
(
t
)
AS
bug
FROM
t1
;
SELECT
LENGTH
(
bug
)
FROM
t2
;
DROP
TABLE
t2
;
DROP
TABLE
t1
;
# End of 4.1 tests
sql/field.cc
View file @
2322b2c2
...
...
@@ -6949,11 +6949,11 @@ uint32 Field_blob::max_length()
switch
(
packlength
)
{
case
1
:
return
255
;
return
255
*
field_charset
->
mbmaxlen
;
case
2
:
return
65535
;
return
65535
*
field_charset
->
mbmaxlen
;
case
3
:
return
16777215
;
return
16777215
*
field_charset
->
mbmaxlen
;
case
4
:
return
(
uint32
)
4294967295U
;
default:
...
...
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