~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to libmysqld/lib_load.cc

  • Committer: sasha at sashanet
  • Date: 2001-04-12 01:09:00 UTC
  • mfrom: (669.1.1)
  • Revision ID: sp1r-sasha@mysql.sashanet.com-20010412010900-14282
Ugly merge of 3.23 changes into 4.0 - fix up needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c)  2000
 
3
 * SWsoft  company
 
4
 *
 
5
 * This material is provided "as is", with absolutely no warranty expressed
 
6
 * or implied. Any use is at your own risk.
 
7
 *
 
8
 * Permission to use or copy this software for any purpose is hereby granted 
 
9
 * without fee, provided the above notices are retained on all copies.
 
10
 * Permission to modify the code and to distribute modified code is granted,
 
11
 * provided the above notices are retained, and a notice that the code was
 
12
 * modified is included with the above copyright notice.
 
13
 *
 
14
 */
 
15
/* Copy data from a textfile to table */
 
16
 
 
17
#include "mysql_priv.h"
 
18
#include <my_dir.h>
 
19
#include <m_ctype.h>
 
20
 
 
21
 
 
22
int
 
23
mysql_load_internal(THD * thd, sql_exchange * ex, TABLE_LIST * table_list,
 
24
List<Item> & fields, enum enum_duplicates handle_duplicates,
 
25
bool read_file_from_client, thr_lock_type lock_type);
 
26
 
 
27
int
 
28
mysql_load(THD * thd, sql_exchange * ex, TABLE_LIST * table_list,
 
29
List<Item> & fields, enum enum_duplicates handle_duplicates,
 
30
bool read_file_from_client, thr_lock_type lock_type)
 
31
{
 
32
        printf("SWSOFT_MYSQL load: \n");
 
33
  read_file_from_client  = 0; //server is always in the same process 
 
34
    return  mysql_load_internal(thd, ex, table_list, fields, handle_duplicates,
 
35
 read_file_from_client, lock_type);
 
36
 
 
37
}
 
38
 
 
39
#define mysql_load mysql_load_internal
 
40
 
 
41
#include "../sql/sql_load.cc"