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
6a6cc8a6
Commit
6a6cc8a6
authored
Oct 29, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove not used table_flag HA_NO_VARCHAR
parent
cfd81de6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
sql/handler.h
sql/handler.h
+0
-1
sql/sql_table.cc
sql/sql_table.cc
+0
-14
No files found.
sql/handler.h
View file @
6a6cc8a6
...
@@ -151,7 +151,6 @@ enum enum_alter_inplace_result {
...
@@ -151,7 +151,6 @@ enum enum_alter_inplace_result {
#define HA_HAS_OLD_CHECKSUM (1ULL << 24)
#define HA_HAS_OLD_CHECKSUM (1ULL << 24)
/* Table data are stored in separate files (for lower_case_table_names) */
/* Table data are stored in separate files (for lower_case_table_names) */
#define HA_FILE_BASED (1ULL << 26)
#define HA_FILE_BASED (1ULL << 26)
#define HA_NO_VARCHAR (1ULL << 27)
/* unused */
#define HA_CAN_BIT_FIELD (1ULL << 28)
/* supports bit fields */
#define HA_CAN_BIT_FIELD (1ULL << 28)
/* supports bit fields */
#define HA_NEED_READ_RANGE_BUFFER (1ULL << 29)
/* for read_multi_range */
#define HA_NEED_READ_RANGE_BUFFER (1ULL << 29)
/* for read_multi_range */
#define HA_ANY_INDEX_MAY_BE_UNIQUE (1ULL << 30)
#define HA_ANY_INDEX_MAY_BE_UNIQUE (1ULL << 30)
...
...
sql/sql_table.cc
View file @
6a6cc8a6
...
@@ -2935,20 +2935,6 @@ uint Column_definition::pack_flag_numeric(uint dec) const
...
@@ -2935,20 +2935,6 @@ uint Column_definition::pack_flag_numeric(uint dec) const
bool
Column_definition
::
prepare_stage2_varchar
(
ulonglong
table_flags
)
bool
Column_definition
::
prepare_stage2_varchar
(
ulonglong
table_flags
)
{
{
#ifndef QQ_ALL_HANDLERS_SUPPORT_VARCHAR
if
(
table_flags
&
HA_NO_VARCHAR
)
{
/* convert VARCHAR to CHAR because handler is not yet up to date */
set_handler
(
&
type_handler_var_string
);
pack_length
=
type_handler
()
->
calc_pack_length
((
uint
)
length
);
if
((
length
/
charset
->
mbmaxlen
)
>
MAX_FIELD_CHARLENGTH
)
{
my_error
(
ER_TOO_BIG_FIELDLENGTH
,
MYF
(
0
),
field_name
.
str
,
static_cast
<
ulong
>
(
MAX_FIELD_CHARLENGTH
));
return
true
;
}
}
#endif
pack_flag
=
(
charset
->
state
&
MY_CS_BINSORT
)
?
FIELDFLAG_BINARY
:
0
;
pack_flag
=
(
charset
->
state
&
MY_CS_BINSORT
)
?
FIELDFLAG_BINARY
:
0
;
return
false
;
return
false
;
}
}
...
...
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