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
ee445de9
Commit
ee445de9
authored
Aug 16, 2000
by
tim@localhost.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Server core dumped if ALTER TABLE SET DEFAULT was called on a blob
field.
parent
807460bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sql/sql_table.cc
sql/sql_table.cc
+5
-0
No files found.
sql/sql_table.cc
View file @
ee445de9
...
@@ -1144,6 +1144,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -1144,6 +1144,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
}
if
(
alter
)
if
(
alter
)
{
{
if
(
def
->
sql_type
==
FIELD_TYPE_BLOB
)
{
my_error
(
ER_BLOB_CANT_HAVE_DEFAULT
,
MYF
(
0
),
def
->
change
);
DBUG_RETURN
(
-
1
);
}
def
->
def
=
alter
->
def
;
// Use new default
def
->
def
=
alter
->
def
;
// Use new default
alter_it
.
remove
();
alter_it
.
remove
();
}
}
...
...
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