~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleslap.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-03 07:42:39 UTC
  • mto: (656.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: dev@torum.net-20081203074239-4qwr4u7prq7uqxet
First pass of replacing MySQL's my_stpcpy() with appropriate libc calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
904
904
                                  MYF(MY_ZEROFILL|MY_FAE|MY_WME));
905
905
  ptr->length= table_string.length()+1;
906
906
  ptr->type= CREATE_TABLE_TYPE;
907
 
  my_stpcpy(ptr->string, table_string.c_str());
 
907
  strcpy(ptr->string, table_string.c_str());
908
908
  return(ptr);
909
909
}
910
910
 
974
974
    ptr->type= UPDATE_TYPE_REQUIRES_PREFIX ;
975
975
  else
976
976
    ptr->type= UPDATE_TYPE;
977
 
  my_stpcpy(ptr->string, update_string.c_str());
 
977
  strcpy(ptr->string, update_string.c_str());
978
978
  return(ptr);
979
979
}
980
980
 
1111
1111
  }
1112
1112
  ptr->length= insert_string.length()+1;
1113
1113
  ptr->type= INSERT_TYPE;
1114
 
  my_stpcpy(ptr->string, insert_string.c_str());
 
1114
  strcpy(ptr->string, insert_string.c_str());
1115
1115
  return(ptr);
1116
1116
}
1117
1117
 
1197
1197
    ptr->type= SELECT_TYPE_REQUIRES_PREFIX;
1198
1198
  else
1199
1199
    ptr->type= SELECT_TYPE;
1200
 
  my_stpcpy(ptr->string, query_string.c_str());
 
1200
  strcpy(ptr->string, query_string.c_str());
1201
1201
  return(ptr);
1202
1202
}
1203
1203