~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2008-12-15 07:27:18 UTC
  • mfrom: (670.1.24 devel)
  • Revision ID: brian@tangent.org-20081215072718-uf9nak79262b8snk
Merge of Monty's work.

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
      }