~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_class.cc

Removed my_vsnprintf and my_snprintf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
  char header[64];
304
304
  int len;
305
305
 
306
 
  len= my_snprintf(header, sizeof(header),
307
 
                   "MySQL thread id %lu, query id %lu",
308
 
                   thd->thread_id, (ulong) thd->query_id);
 
306
  len= snprintf(header, sizeof(header),
 
307
                "MySQL thread id %lu, query id %lu",
 
308
                thd->thread_id, (ulong) thd->query_id);
309
309
  str.length(0);
310
310
  str.append(header, len);
311
311
 
3001
3001
    if (!(binlog_flags & BINLOG_FLAG_UNSAFE_STMT_PRINTED))
3002
3002
    {
3003
3003
      char warn_buf[MYSQL_ERRMSG_SIZE];
3004
 
      my_snprintf(warn_buf, MYSQL_ERRMSG_SIZE, "%s Statement: %s",
3005
 
                  ER(ER_BINLOG_UNSAFE_STATEMENT), this->query);
 
3004
      snprintf(warn_buf, MYSQL_ERRMSG_SIZE, "%s Statement: %s",
 
3005
               ER(ER_BINLOG_UNSAFE_STATEMENT), this->query);
3006
3006
      sql_print_warning(warn_buf);
3007
3007
      binlog_flags|= BINLOG_FLAG_UNSAFE_STMT_PRINTED;
3008
3008
    }