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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bf2f6ff2
Commit
bf2f6ff2
authored
Mar 24, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#9303 blob field with specified length < 256 does not create tinyblob
parent
a430d5a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mysql-test/r/type_blob.result
mysql-test/r/type_blob.result
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
No files found.
mysql-test/r/type_blob.result
View file @
bf2f6ff2
...
...
@@ -4,7 +4,7 @@ show columns from t1;
Field Type Null Key Default Extra
a blob YES NULL
b text YES NULL
c blob YES NULL
c
tiny
blob YES NULL
d mediumtext YES NULL
e longtext YES NULL
CREATE TABLE t2 (a char(257), b varbinary(70000), c varchar(70000000));
...
...
sql/sql_parse.cc
View file @
bf2f6ff2
...
...
@@ -4404,7 +4404,7 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
/* The user has given a length to the blob column */
if
(
new_field
->
length
<
256
)
type
=
FIELD_TYPE_TINY_BLOB
;
if
(
new_field
->
length
<
65536
)
else
if
(
new_field
->
length
<
65536
)
type
=
FIELD_TYPE_BLOB
;
else
if
(
new_field
->
length
<
256L
*
256L
*
256L
)
type
=
FIELD_TYPE_MEDIUM_BLOB
;
...
...
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