~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Brian Aker
  • Date: 2009-08-25 16:22:47 UTC
  • mfrom: (1115.3.21 captain)
  • Revision ID: brian@gaz-20090825162247-835hbazk9n1iy6e0
MErge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
      snprintf(msgbuf, MAX_MSG_LEN,
286
286
               "%"PRIu64",%"PRIu64",%"PRIu64",\"%.*s\",\"%s\",\"%.*s\","
287
287
               "%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64","
288
 
               "%"PRIu32",%"PRIu32"\n",
 
288
               "%"PRIu32",%"PRIu32",%"PRIu32",\"%s\",%"PRIu32"\n",
289
289
               t_mark,
290
290
               session->thread_id,
291
 
               session->query_id,
 
291
               session->getQueryId(),
292
292
               // dont need to quote the db name, always CSV safe
293
293
               dbl, dbs,
294
294
               // do need to quote the query
295
 
               quotify((unsigned char *)session->query,
296
 
                       session->query_length, qs, sizeof(qs)),
 
295
               quotify((unsigned char *)session->getQueryString(),
 
296
                       session->getQueryLength(), qs, sizeof(qs)),
297
297
               // command_name is defined in drizzled/sql_parse.cc
298
298
               // dont need to quote the command name, always CSV safe
299
299
               (int)command_name[session->command].length,
305
305
               session->sent_row_count,
306
306
               session->examined_row_count,
307
307
               session->tmp_table,
308
 
               session->total_warn_count);
 
308
               session->total_warn_count,
 
309
               session->getServerId(),
 
310
               glob_hostname,
 
311
               drizzled_tcp_port
 
312
               );
309
313
  
310
314
    // a single write has a kernel thread lock, thus no need mutex guard this
311
315
    wrv= write(fd, msgbuf, msgbuf_len);