~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/query_log/module.cc

  • Committer: Mark Atwood
  • Date: 2011-08-21 06:56:57 UTC
  • mfrom: (2385.3.34 rf)
  • Revision ID: me@mark.atwood.name-20110821065657-vk2at03z9u17mf1d
mergeĀ lp:~olafvdspek/drizzle/refactor7

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
using namespace std;
32
32
using namespace drizzled;
33
33
 
34
 
namespace drizzle_plugin
35
 
{
 
34
namespace drizzle_plugin {
 
35
 
36
36
/**
37
37
 * Forward declarations.
38
38
 * Mac OS X 10.6 with gcc 4.2.1 misses this warning (but still compiles):
78
78
{
79
79
  const char *new_file= var->value->str_value.ptr();
80
80
 
81
 
  if (!new_file)
 
81
  if (not new_file)
82
82
  {
83
83
    errmsg_printf(error::ERROR, _("The query log file name must be defined."));
84
84
    return false;
85
85
  }
86
86
 
87
 
  if (strlen(new_file) == 0)
 
87
  if (not *new_file)
88
88
  {
89
89
    errmsg_printf(error::ERROR, _("The query log file name must have a value."));
90
90
    return false;