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
66b31520
Commit
66b31520
authored
Mar 24, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge
parents
7b0e8726
ccea1af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
sql/sql_parse.cc
sql/sql_parse.cc
+14
-0
No files found.
sql/sql_parse.cc
View file @
66b31520
...
@@ -5403,6 +5403,20 @@ new_create_field(THD *thd, char *field_name, enum_field_types type,
...
@@ -5403,6 +5403,20 @@ new_create_field(THD *thd, char *field_name, enum_field_types type,
case
FIELD_TYPE_LONG_BLOB
:
case
FIELD_TYPE_LONG_BLOB
:
case
FIELD_TYPE_MEDIUM_BLOB
:
case
FIELD_TYPE_MEDIUM_BLOB
:
case
FIELD_TYPE_GEOMETRY
:
case
FIELD_TYPE_GEOMETRY
:
if
(
new_field
->
length
)
{
/* The user has given a length to the blob column */
if
(
new_field
->
length
<
256
)
type
=
FIELD_TYPE_TINY_BLOB
;
else
if
(
new_field
->
length
<
65536
)
type
=
FIELD_TYPE_BLOB
;
else
if
(
new_field
->
length
<
256L
*
256L
*
256L
)
type
=
FIELD_TYPE_MEDIUM_BLOB
;
else
type
=
FIELD_TYPE_LONG_BLOB
;
new_field
->
length
=
0
;
}
new_field
->
sql_type
=
type
;
if
(
default_value
)
// Allow empty as default value
if
(
default_value
)
// Allow empty as default value
{
{
String
str
,
*
res
;
String
str
,
*
res
;
...
...
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