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
fe3f9fa9
Commit
fe3f9fa9
authored
Jun 21, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12809 Bad column type created for TEXT(1431655798) CHARACTER SET utf8
parent
635c5e32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
mysql-test/r/type_blob.result
mysql-test/r/type_blob.result
+16
-0
mysql-test/t/type_blob.test
mysql-test/t/type_blob.test
+18
-0
sql/field.cc
sql/field.cc
+1
-1
No files found.
mysql-test/r/type_blob.result
View file @
fe3f9fa9
...
...
@@ -1063,3 +1063,19 @@ DROP TABLE t1;
#
# End of 5.5 tests
#
#
# Start of 10.2 test
#
#
# MDEV-12809 Bad column type created for TEXT(1431655798) CHARACTER SET utf8
#
CREATE TABLE t1 (a TEXT(1431655798) CHARACTER SET utf8);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` longtext CHARACTER SET utf8 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
#
# End of 10.2 test
#
mysql-test/t/type_blob.test
View file @
fe3f9fa9
...
...
@@ -680,3 +680,21 @@ DROP TABLE t1;
--
echo
#
--
echo
# End of 5.5 tests
--
echo
#
--
echo
#
--
echo
# Start of 10.2 test
--
echo
#
--
echo
#
--
echo
# MDEV-12809 Bad column type created for TEXT(1431655798) CHARACTER SET utf8
--
echo
#
CREATE
TABLE
t1
(
a
TEXT
(
1431655798
)
CHARACTER
SET
utf8
);
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.2 test
--
echo
#
sql/field.cc
View file @
fe3f9fa9
...
...
@@ -9777,7 +9777,7 @@ void Column_definition::create_length_to_internal_length(void)
case
MYSQL_TYPE_STRING
:
case
MYSQL_TYPE_VARCHAR
:
length
*=
charset
->
mbmaxlen
;
DBUG_ASSERT
(
length
<=
UINT_MAX32
);
set_if_smaller
(
length
,
UINT_MAX32
);
key_length
=
(
uint32
)
length
;
pack_length
=
calc_pack_length
(
sql_type
,
key_length
);
break
;
...
...
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