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
bbabdaef
Commit
bbabdaef
authored
Nov 23, 2022
by
Weijun-H
Committed by
Nikita Malyavin
Nov 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase max field name
Signed-off-by:
Weijun-H
<
huangweijun1001@gmail.com
>
parent
da03d8d9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
1 deletion
+40
-1
mysql-test/main/period_name.result
mysql-test/main/period_name.result
+9
-0
mysql-test/main/period_name.test
mysql-test/main/period_name.test
+11
-0
mysql-test/suite/period/r/create.result
mysql-test/suite/period/r/create.result
+8
-0
mysql-test/suite/period/t/create.test
mysql-test/suite/period/t/create.test
+11
-0
sql/sql_const.h
sql/sql_const.h
+1
-1
No files found.
mysql-test/main/period_name.result
0 → 100644
View file @
bbabdaef
#
# MDEV-29387: Period name with more than 32 symbols crashes the server
#
# test 34 symbols
create table t2 (s date, e date, period for `abcd123456789012345678901234567890` (s,e));
drop table t2;
# test 64 symbols
create table t2 (s date, e date, period for `abcd123456789012345678901234567890123456789012345678901234567890` (s,e));
drop table t2;
mysql-test/main/period_name.test
0 → 100644
View file @
bbabdaef
--
echo
#
--
echo
# MDEV-29387: Period name with more than 32 symbols crashes the server
--
echo
#
--
echo
# test 34 symbols
create
table
t2
(
s
date
,
e
date
,
period
for
`abcd123456789012345678901234567890`
(
s
,
e
));
drop
table
t2
;
--
echo
# test 64 symbols
create
table
t2
(
s
date
,
e
date
,
period
for
`abcd123456789012345678901234567890123456789012345678901234567890`
(
s
,
e
));
drop
table
t2
;
mysql-test/suite/period/r/create.result
View file @
bbabdaef
...
...
@@ -100,3 +100,11 @@ show status like "Feature_application_time_periods";
Variable_name Value
Feature_application_time_periods 6
drop table t;
# MDEV-29387: Period name with more than 32 symbols crashes the server
#
# test 34 symbols
create table t2 (s date, e date, period for `abcd123456789012345678901234567890` (s,e));
drop table t2;
# test 64 symbols
create table t2 (s date, e date, period for `abcd123456789012345678901234567890123456789012345678901234567890` (s,e));
drop table t2;
mysql-test/suite/period/t/create.test
View file @
bbabdaef
...
...
@@ -85,3 +85,14 @@ insert t values (2, '2001-01-01', '2001-01-01');
show
status
like
"Feature_application_time_periods"
;
drop
table
t
;
--
echo
# MDEV-29387: Period name with more than 32 symbols crashes the server
--
echo
#
--
echo
# test 34 symbols
create
table
t2
(
s
date
,
e
date
,
period
for
`abcd123456789012345678901234567890`
(
s
,
e
));
drop
table
t2
;
--
echo
# test 64 symbols
create
table
t2
(
s
date
,
e
date
,
period
for
`abcd123456789012345678901234567890123456789012345678901234567890`
(
s
,
e
));
drop
table
t2
;
\ No newline at end of file
sql/sql_const.h
View file @
bbabdaef
...
...
@@ -29,7 +29,7 @@
/* extra 4+4 bytes for slave tmp tables */
#define MAX_DBKEY_LENGTH (NAME_LEN*2+1+1+4+4)
#define MAX_ALIAS_NAME 256
#define MAX_FIELD_NAME
34
/* Max colum name length +2 */
#define MAX_FIELD_NAME
(NAME_LEN+1)
/* Max colum name length +2 */
#define MAX_SYS_VAR_LENGTH 32
#define MAX_KEY MAX_INDEXES
/* Max used keys */
#define MAX_REF_PARTS 32
/* Max parts used as ref */
...
...
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