~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        *row_end;                       /* Found row ends here */
43
43
  const CHARSET_INFO *read_charset;
44
44
 
45
 
  READ_INFO(File file,uint tot_length, const CHARSET_INFO * const cs,
 
45
  READ_INFO(File file,uint32_t tot_length, const CHARSET_INFO * const cs,
46
46
            String &field_term,String &line_start,String &line_term,
47
47
            String &enclosed,int escape,bool get_it_from_net, bool is_fifo);
48
48
  ~READ_INFO();
50
50
  int read_fixed_length(void);
51
51
  int next_line(void);
52
52
  char unescape(char chr);
53
 
  int terminator(char *ptr,uint length);
 
53
  int terminator(char *ptr,uint32_t length);
54
54
  bool find_start_of_fields();
55
55
 
56
56
  /*
208
208
 
209
209
  table->mark_columns_needed_for_insert();
210
210
 
211
 
  uint tot_length=0;
 
211
  uint32_t tot_length=0;
212
212
  bool use_blobs= 0, use_vars= 0;
213
213
  List_iterator_fast<Item> it(fields_vars);
214
214
  Item *item;
563
563
      }
564
564
      else
565
565
      {
566
 
        uint length;
 
566
        uint32_t length;
567
567
        unsigned char save_chr;
568
568
        if ((length=(uint) (read_info.row_end-pos)) >
569
569
            field->field_length)
623
623
  List_iterator_fast<Item> it(fields_vars);
624
624
  Item *item;
625
625
  Table *table= table_list->table;
626
 
  uint enclosed_length;
 
626
  uint32_t enclosed_length;
627
627
  uint64_t id;
628
628
  bool err;
629
629
 
642
642
 
643
643
    while ((item= it++))
644
644
    {
645
 
      uint length;
 
645
      uint32_t length;
646
646
      unsigned char *pos;
647
647
      Item *real_item;
648
648
 
822
822
*/
823
823
 
824
824
 
825
 
READ_INFO::READ_INFO(File file_par, uint tot_length, const CHARSET_INFO * const cs,
 
825
READ_INFO::READ_INFO(File file_par, uint32_t tot_length, const CHARSET_INFO * const cs,
826
826
                     String &field_term, String &line_start, String &line_term,
827
827
                     String &enclosed_par, int escape, bool get_it_from_net,
828
828
                     bool is_fifo)
860
860
 
861
861
 
862
862
  /* Set of a stack for unget if long terminators */
863
 
  uint length=cmax(field_term_length,line_term_length)+1;
 
863
  uint32_t length=cmax(field_term_length,line_term_length)+1;
864
864
  set_if_bigger(length,line_start.length());
865
865
  stack=stack_pos=(int*) sql_alloc(sizeof(int)*length);
866
866
 
913
913
#define PUSH(A) *(stack_pos++)=(A)
914
914
 
915
915
 
916
 
inline int READ_INFO::terminator(char *ptr,uint length)
 
916
inline int READ_INFO::terminator(char *ptr,uint32_t length)
917
917
{
918
918
  int chr=0;                                    // Keep gcc happy
919
 
  uint i;
 
919
  uint32_t i;
920
920
  for (i=1 ; i < length ; i++)
921
921
  {
922
922
    if ((chr=GET) != *++ptr)
1183
1183
#ifdef USE_MB
1184
1184
   if (my_mbcharlen(read_charset, chr) > 1)
1185
1185
   {
1186
 
       for (uint i=1;
 
1186
       for (uint32_t i=1;
1187
1187
            chr != my_b_EOF && i<my_mbcharlen(read_charset, chr);
1188
1188
            i++)
1189
1189
           chr = GET;