~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.cc

  • Committer: Brian Aker
  • Date: 2011-01-04 22:27:38 UTC
  • mfrom: (2041.3.16 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2055.
  • Revision ID: brian@tangent.org-20110104222738-4r3hrsxrlbuildrg
Merge in cleanup of error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "config.h"
21
21
 
 
22
#include "drizzled/identifier.h"
22
23
#include "drizzled/identifier/user.h"
23
24
 
24
25
namespace drizzled
31
32
  return shared_ptr(new User);
32
33
}
33
34
 
 
35
void User::getSQLPath(std::string &arg) const
 
36
{
 
37
  if (_user.empty())
 
38
  {
 
39
    arg.append("no user");
 
40
  }
 
41
  else
 
42
  {
 
43
    arg.append(_user);
 
44
  }
 
45
}
34
46
 
35
47
} /* namespace identifier */
36
48
} /* namespace drizzled */