summaryrefslogtreecommitdiff
path: root/storage/example
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@linux-rbsx>2010-01-18 23:00:48 +0100
committerVladislav Vaintroub <vvaintroub@linux-rbsx>2010-01-18 23:00:48 +0100
commitba23a0139db3f06460a2ebd010e7103d38bfdb84 (patch)
tree3c1cefd03a6d459d29396a65e71d249ea12fa5b9 /storage/example
parent10a7c78ed4a57cba4e5cb5ce53388ce162a568bf (diff)
parent33c075e842324cfdf0aab055c2db8d0d50bcbc68 (diff)
downloadmariadb-git-ba23a0139db3f06460a2ebd010e7103d38bfdb84.tar.gz
merge
Diffstat (limited to 'storage/example')
-rw-r--r--storage/example/ha_example.cc8
-rw-r--r--storage/example/ha_example.h8
2 files changed, 11 insertions, 5 deletions
diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc
index 8d2eb914a97..fb143f0b8d4 100644
--- a/storage/example/ha_example.cc
+++ b/storage/example/ha_example.cc
@@ -383,7 +383,13 @@ int ha_example::close(void)
int ha_example::write_row(uchar *buf)
{
DBUG_ENTER("ha_example::write_row");
- DBUG_RETURN(HA_ERR_WRONG_COMMAND);
+ /*
+ Example of a successful write_row. We don't store the data
+ anywhere; they are thrown away. A real implementation will
+ probably need to do something with 'buf'. We report a success
+ here, to pretend that the insert was successful.
+ */
+ DBUG_RETURN(0);
}
diff --git a/storage/example/ha_example.h b/storage/example/ha_example.h
index 4f88d6ced8e..48f0bbbf9cd 100644
--- a/storage/example/ha_example.h
+++ b/storage/example/ha_example.h
@@ -83,11 +83,11 @@ public:
ulonglong table_flags() const
{
/*
- We are saying that this engine is just row capable to have an
- engine that can only handle row-based logging. This is used in
- testing.
+ We are saying that this engine is just statement capable to have
+ an engine that can only handle statement-based logging. This is
+ used in testing.
*/
- return HA_BINLOG_ROW_CAPABLE;
+ return HA_BINLOG_STMT_CAPABLE;
}
/** @brief