~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
17
 
#include "drizzled/server_includes.h"
 
17
#include "config.h"
18
18
#include "drizzled/field.h"
19
19
#include "drizzled/field/blob.h"
20
20
#include "drizzled/field/timestamp.h"
25
25
 
26
26
#include "ha_archive.h"
27
27
 
28
 
#include <stdio.h>
 
28
#include <unistd.h>
 
29
#include <fcntl.h>
 
30
 
 
31
#include <cstdio>
29
32
#include <string>
30
33
#include <map>
31
34
 
224
227
    const char *ext= strchr(filename->c_str(), '.');
225
228
 
226
229
    if (ext == NULL || my_strcasecmp(system_charset_info, ext, ARZ) ||
227
 
        is_prefix(filename->c_str(), TMP_FILE_PREFIX))
 
230
        (filename->compare(0, strlen(TMP_FILE_PREFIX), TMP_FILE_PREFIX) == 0))
228
231
    {  }
229
232
    else
230
233
    {
1461
1464
 
1462
1465
DRIZZLE_DECLARE_PLUGIN
1463
1466
{
 
1467
  DRIZZLE_VERSION_ID,
1464
1468
  "ARCHIVE",
1465
1469
  "3.5",
1466
1470
  "Brian Aker, MySQL AB",