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
c4280491
Commit
c4280491
authored
Apr 30, 2006
by
jani@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1
into hundin.mysql.fi:/home/jani/mysql-4.1
parents
39bd7027
a7a81439
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
sql/set_var.cc
sql/set_var.cc
+0
-4
sql/sql_show.cc
sql/sql_show.cc
+3
-4
No files found.
sql/set_var.cc
View file @
c4280491
...
...
@@ -3207,10 +3207,6 @@ ulong fix_sql_mode(ulong sql_mode)
MODE_IGNORE_SPACE
|
MODE_NO_KEY_OPTIONS
|
MODE_NO_TABLE_OPTIONS
|
MODE_NO_FIELD_OPTIONS
);
if
(
sql_mode
&
MODE_MYSQL40
)
sql_mode
|=
MODE_NO_FIELD_OPTIONS
;
if
(
sql_mode
&
MODE_MYSQL323
)
sql_mode
|=
MODE_NO_FIELD_OPTIONS
;
return
sql_mode
;
}
...
...
sql/sql_show.cc
View file @
c4280491
...
...
@@ -1344,8 +1344,8 @@ store_create_info(THD *thd, TABLE *table, String *packet)
has_default
=
(
field
->
type
()
!=
FIELD_TYPE_BLOB
&&
field
->
unireg_check
!=
Field
::
NEXT_NUMBER
&&
!
((
thd
->
variables
.
sql_mode
&
(
MODE_MYSQL323
|
MODE_MYSQL40
))
&&
has_now_default
));
!
((
thd
->
variables
.
sql_mode
&
(
MODE_MYSQL323
|
MODE_MYSQL40
))
&&
has_now_default
));
if
(
has_default
)
{
...
...
@@ -1374,8 +1374,7 @@ store_create_info(THD *thd, TABLE *table, String *packet)
packet
->
append
(
tmp
);
}
if
(
!
(
thd
->
variables
.
sql_mode
&
MODE_NO_FIELD_OPTIONS
)
&&
table
->
timestamp_field
==
field
&&
if
(
!
limited_mysql_mode
&&
table
->
timestamp_field
==
field
&&
field
->
unireg_check
!=
Field
::
TIMESTAMP_DN_FIELD
)
packet
->
append
(
" on update CURRENT_TIMESTAMP"
,
28
);
...
...
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