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
34b101ca
Commit
34b101ca
authored
Dec 09, 2003
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the bug #1885: mysqldump does not dumps timestamp default.
parent
56e49fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sql/sql_parse.cc
sql/sql_parse.cc
+6
-1
No files found.
sql/sql_parse.cc
View file @
34b101ca
...
...
@@ -3042,7 +3042,12 @@ bool add_field_to_list(char *field_name, enum_field_types type,
if
(
default_value
)
{
if
(
default_value
->
type
()
==
Item
::
NULL_ITEM
)
if
(
type
==
FIELD_TYPE_TIMESTAMP
)
{
net_printf
(
&
thd
->
net
,
ER_INVALID_DEFAULT
,
field_name
);
DBUG_RETURN
(
1
);
}
else
if
(
default_value
->
type
()
==
Item
::
NULL_ITEM
)
{
default_value
=
0
;
if
((
type_modifier
&
(
NOT_NULL_FLAG
|
AUTO_INCREMENT_FLAG
))
==
...
...
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