~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-14 08:26:38 UTC
  • mto: (670.1.24 devel)
  • mto: This revision was merged to the branch mainline in revision 676.
  • Revision ID: dev@torum.net-20081214082638-c8uje8oiwk4s2dh0
First pass of replacing MySQL's strxmov with libc alternatives

Show diffs side-by-side

added added

removed removed

Lines of Context:
3253
3253
          We inherited this from MySQL. TODO: fix it to issue a propper truncate
3254
3254
          of the table (though that may not be completely right sematics).
3255
3255
        */
3256
 
        end = strxmov(strcpy(query, "DELETE FROM `")+13,
3257
 
                      share->db.str,"`.`",share->table_name.str,"`", NULL);
 
3256
        end= query;
 
3257
        end+= sprintf(query, "DELETE FROM `%s`.`%s`", share->db.str,
 
3258
                      share->table_name.str);
3258
3259
        (void)replicator_statement(session, query, (size_t)(end - query));
3259
3260
        free(query);
3260
3261
      }