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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
097804fb
Commit
097804fb
authored
Mar 28, 2006
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Behavior change to preserve schema unless you specify autogenerated SQL or create values.
parent
91ea8c05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
client/mysqlslap.c
client/mysqlslap.c
+7
-2
No files found.
client/mysqlslap.c
View file @
097804fb
...
...
@@ -266,6 +266,7 @@ int main(int argc, char **argv)
my_end
(
0
);
exit
(
1
);
}
/* globals? Yes, so we only have to run strlen once */
delimiter_length
=
strlen
(
delimiter
);
...
...
@@ -455,9 +456,10 @@ static struct my_option my_long_options[] =
(
gptr
*
)
&
opt_mysql_port
,
0
,
GET_UINT
,
REQUIRED_ARG
,
MYSQL_PORT
,
0
,
0
,
0
,
0
,
0
},
{
"preserve-schema"
,
OPT_MYSQL_PRESERVE_SCHEMA
,
"Preserve the schema from the mysqlslap run."
,
"Preserve the schema from the mysqlslap run, this happens unless \
--auto-generate-sql or --create are used."
,
(
gptr
*
)
&
opt_preserve
,
(
gptr
*
)
&
opt_preserve
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
NO_ARG
,
TRUE
,
0
,
0
,
0
,
0
,
0
},
{
"protocol"
,
OPT_MYSQL_PROTOCOL
,
"The protocol of connection (tcp,socket,pipe,memory)."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -750,6 +752,9 @@ get_options(int *argc,char ***argv)
if
(
!
user
)
user
=
(
char
*
)
"root"
;
if
(
create_string
||
auto_generate_sql
)
opt_preserve
=
FALSE
;
if
(
auto_generate_sql
&&
(
create_string
||
user_supplied_query
))
{
fprintf
(
stderr
,
...
...
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