summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-05-24 18:51:53 +0200
committerunknown <kent@mysql.com>2005-05-24 18:51:53 +0200
commitcfb54ed5141c1b6ba5989658180d7d87a87bf613 (patch)
tree0f20f1b2f0ec6891dce093340a50f94266a59519 /sql/examples
parentf9433acc8180cd5f7edd7c419d79fd683f089061 (diff)
downloadmariadb-git-cfb54ed5141c1b6ba5989658180d7d87a87bf613.tar.gz
ha_archive.cc:
Use local seach path for "mysql_priv.h" mysqld.dsp: Added the ARCHIVE storage engine to max ha_archive.h: VC6, but not VC7, needs a cast of byte[] to char* to make the compile select the right conversion function in String sql/examples/ha_archive.h: VC6, but not VC7, needs a cast of byte[] to char* to make the compile select the right conversion function in String VC++Files/sql/mysqld.dsp: Added the ARCHIVE storage engine to max sql/examples/ha_archive.cc: Use local seach path for "mysql_priv.h"
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_archive.cc2
-rw-r--r--sql/examples/ha_archive.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index 231031c9834..f28ba79a00e 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -18,7 +18,7 @@
#pragma implementation // gcc: Class implementation
#endif
-#include <mysql_priv.h>
+#include "../mysql_priv.h"
#ifdef HAVE_ARCHIVE_DB
#include "ha_archive.h"
diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h
index c68462be1ab..2f310d8c69b 100644
--- a/sql/examples/ha_archive.h
+++ b/sql/examples/ha_archive.h
@@ -61,7 +61,7 @@ public:
ha_archive(TABLE *table): handler(table), delayed_insert(0), bulk_insert(0)
{
/* Set our original buffer from pre-allocated memory */
- buffer.set(byte_buffer, IO_SIZE, system_charset_info);
+ buffer.set((char *)byte_buffer, IO_SIZE, system_charset_info);
/* The size of the offset value we will use for position() */
ref_length = sizeof(z_off_t);