~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.h

  • Committer: Brian Aker
  • Date: 2011-02-16 02:39:43 UTC
  • mfrom: (2171.1.3 drizzle-staging)
  • Revision ID: brian@tangent.org-20110216023943-z4lxkjvknnrrncr2
Merge of all fixes related to errors, schemas, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
  enum PasswordType
49
49
  {
 
50
    NONE,
50
51
    PLAIN_TEXT,
51
52
    MYSQL_HASH
52
53
  };
53
54
 
54
55
  User():
55
 
    password_type(PLAIN_TEXT),
 
56
    password_type(NONE),
56
57
    _user(""),
57
58
    _address("")
58
59
  { }
59
60
 
60
61
  virtual void getSQLPath(std::string &arg) const;
61
62
 
 
63
  bool hasPassword() const
 
64
  {
 
65
    switch (password_type)
 
66
    {
 
67
    case NONE:
 
68
      return false;
 
69
    case PLAIN_TEXT:
 
70
    case MYSQL_HASH:
 
71
      break;
 
72
    }
 
73
 
 
74
    return true;
 
75
  }
 
76
 
62
77
  const std::string& address() const
63
78
  {
64
79
    return _address;