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
e79ed81d
Commit
e79ed81d
authored
Jan 16, 2003
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --compatible mode to mysqldump.
parent
94cc7d75
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
39 deletions
+148
-39
client/client_priv.h
client/client_priv.h
+2
-1
client/mysqldump.c
client/mysqldump.c
+142
-36
mysql-test/r/sql_mode.result
mysql-test/r/sql_mode.result
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+3
-1
No files found.
client/client_priv.h
View file @
e79ed81d
...
...
@@ -38,4 +38,5 @@ enum options { OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
OPT_SSL_KEY
,
OPT_SSL_CERT
,
OPT_SSL_CA
,
OPT_SSL_CAPATH
,
OPT_SSL_CIPHER
,
OPT_SHUTDOWN_TIMEOUT
,
OPT_LOCAL_INFILE
,
OPT_PROMPT
,
OPT_IGN_LINES
,
OPT_TRANSACTION
,
OPT_MYSQL_PROTOCOL
,
OPT_SHARED_MEMORY_BASE_NAME
,
OPT_FRM
};
OPT_SHARED_MEMORY_BASE_NAME
,
OPT_FRM
,
OPT_SKIP_OPTIMIZATION
,
OPT_COMPATIBLE
};
client/mysqldump.c
View file @
e79ed81d
This diff is collapsed.
Click to expand it.
mysql-test/r/sql_mode.result
View file @
e79ed81d
...
...
@@ -70,7 +70,7 @@ t1 CREATE TABLE `t1` (
`email` varchar(60) NOT NULL default '',
PRIMARY KEY (`a`),
UNIQUE KEY `email` (`email`)
) TYPE=HEAP
CHARSET=latin1
ROW_FORMAT=DYNAMIC
) TYPE=HEAP ROW_FORMAT=DYNAMIC
set @@sql_mode="postgresql,oracle,mssql,db2,sapdb";
show variables like 'sql_mode';
Variable_name Value
...
...
sql/sql_show.cc
View file @
e79ed81d
...
...
@@ -1198,7 +1198,9 @@ store_create_info(THD *thd, TABLE *table, String *packet)
char
buff
[
128
];
char
*
p
;
if
(
table
->
table_charset
)
if
(
table
->
table_charset
&&
!
(
thd
->
variables
.
sql_mode
&
MODE_MYSQL323
)
&&
!
(
thd
->
variables
.
sql_mode
&
MODE_MYSQL40
))
{
packet
->
append
(
" CHARSET="
);
packet
->
append
(
table
->
table_charset
->
csname
);
...
...
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