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
73c60e9d
Commit
73c60e9d
authored
Aug 20, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/data0/bk/mysql-5.1
into bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
parents
0ece5608
4a15ac2a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
client/mysqlslap.c
client/mysqlslap.c
+9
-10
mysql-test/r/mysqlslap.result
mysql-test/r/mysqlslap.result
+2
-2
storage/example/ha_example.cc
storage/example/ha_example.cc
+4
-1
storage/example/plug.in
storage/example/plug.in
+1
-1
No files found.
client/mysqlslap.c
View file @
73c60e9d
...
...
@@ -1416,13 +1416,13 @@ get_options(int *argc,char ***argv)
tmp_string
[
sbuf
.
st_size
]
=
'\0'
;
my_close
(
data_file
,
MYF
(
0
));
if
(
user_supplied_pre_statements
)
actual_queries
=
parse_delimiter
(
tmp_string
,
&
pre_statements
,
(
void
)
parse_delimiter
(
tmp_string
,
&
pre_statements
,
delimiter
[
0
]);
my_free
(
tmp_string
,
MYF
(
0
));
}
else
if
(
user_supplied_pre_statements
)
{
actual_queries
=
parse_delimiter
(
user_supplied_pre_statements
,
(
void
)
parse_delimiter
(
user_supplied_pre_statements
,
&
pre_statements
,
delimiter
[
0
]);
}
...
...
@@ -1447,13 +1447,13 @@ get_options(int *argc,char ***argv)
tmp_string
[
sbuf
.
st_size
]
=
'\0'
;
my_close
(
data_file
,
MYF
(
0
));
if
(
user_supplied_post_statements
)
parse_delimiter
(
tmp_string
,
&
post_statements
,
(
void
)
parse_delimiter
(
tmp_string
,
&
post_statements
,
delimiter
[
0
]);
my_free
(
tmp_string
,
MYF
(
0
));
}
else
if
(
user_supplied_post_statements
)
{
parse_delimiter
(
user_supplied_post_statements
,
&
post_statements
,
(
void
)
parse_delimiter
(
user_supplied_post_statements
,
&
post_statements
,
delimiter
[
0
]);
}
...
...
@@ -2002,7 +2002,6 @@ parse_delimiter(const char *script, statement **stmt, char delm)
ptr
+=
retstr
-
ptr
+
1
;
if
(
isspace
(
*
ptr
))
ptr
++
;
count
++
;
}
if
(
ptr
!=
script
+
length
)
...
...
mysql-test/r/mysqlslap.result
View file @
73c60e9d
...
...
@@ -129,7 +129,6 @@ INSERT INTO t1 VALUES (1, 'This is a test');
insert into t2 values ('test', 'test2');
select * from t1;
select * from t2;
select * from t1;
DROP SCHEMA IF EXISTS `mysqlslap`;
DROP SCHEMA IF EXISTS `mysqlslap`;
CREATE SCHEMA `mysqlslap`;
...
...
@@ -141,7 +140,6 @@ INSERT INTO t1 VALUES (1, 'This is a test');
insert into t2 values ('test', 'test2');
select * from t1;
select * from t2;
select * from t1;
DROP SCHEMA IF EXISTS `mysqlslap`;
DROP SCHEMA IF EXISTS `mysqlslap`;
CREATE SCHEMA `mysqlslap`;
...
...
@@ -153,6 +151,7 @@ INSERT INTO t1 VALUES (1, 'This is a test');
insert into t2 values ('test', 'test2');
SHOW TABLES;
select * from t1;
select * from t2;
SHOW TABLES;
DROP SCHEMA IF EXISTS `mysqlslap`;
DROP SCHEMA IF EXISTS `mysqlslap`;
...
...
@@ -165,6 +164,7 @@ INSERT INTO t1 VALUES (1, 'This is a test');
insert into t2 values ('test', 'test2');
SHOW TABLES;
select * from t1;
select * from t2;
SHOW TABLES;
DROP SCHEMA IF EXISTS `mysqlslap`;
DROP SCHEMA IF EXISTS `mysqlslap`;
...
...
storage/example/ha_example.cc
View file @
73c60e9d
...
...
@@ -79,6 +79,10 @@
ha_example::open() would also have been necessary. Calls to
ha_example::extra() are hints as to what will be occuring to the request.
A Longer Example can be found called the "Skeleton Engine" which can be
found on TangentOrg. It has both an engine and a full build environment
for building a pluggable storage engine.
Happy coding!<br>
-Brian
*/
...
...
@@ -132,7 +136,6 @@ static int example_init_func(void *p)
(
hash_get_key
)
example_get_key
,
0
,
0
);
example_hton
->
state
=
SHOW_OPTION_YES
;
example_hton
->
db_type
=
DB_TYPE_EXAMPLE_DB
;
example_hton
->
create
=
example_create_handler
;
example_hton
->
flags
=
HTON_CAN_RECREATE
;
...
...
storage/example/plug.in
View file @
73c60e9d
MYSQL_STORAGE_ENGINE(example,, [Example Storage Engine],
[
Skeleton
for Storage Engines for developers], [max,max-no-ndb])
[
Example
for Storage Engines for developers], [max,max-no-ndb])
MYSQL_PLUGIN_DYNAMIC(example, [ha_example.la])
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