~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_dictionary/random_string.cc

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
bool utility_dictionary::RandomString::Generator::populate()
51
51
{
52
 
  if (getSession().getLex()->isSumExprUsed() && count > 0)
53
 
    return false;
54
 
 
55
 
  if (getSession().getLex()->current_select->group_list.elements && count > 0)
56
 
    return false;
57
 
 
58
 
  if (getSession().getLex()->current_select->explicit_limit or count == 0)
 
52
  if (lex().isSumExprUsed() && count > 0)
 
53
    return false;
 
54
 
 
55
  if (lex().current_select->group_list.elements && count > 0)
 
56
    return false;
 
57
 
 
58
  if (lex().current_select->explicit_limit or count == 0)
59
59
  {
60
60
    uint32_t random_char_number= random() % LARGEST_RANDOM_STRING;
61
61
    char buffer[LARGEST_RANDOM_STRING];