~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sys_var.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 11:06:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623110621-ins7o98d0q4xsy0a
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1429
1429
  /* this fails if there is a conflicting variable name. */
1430
1430
  if (system_variable_map.count(lower_name))
1431
1431
  {
1432
 
    errmsg_printf(error::ERROR, _("Variable named %s already exists!\n"),
1433
 
                  var->getName().c_str());
 
1432
    errmsg_printf(error::ERROR, _("Variable named %s already exists!\n"), var->getName().c_str());
1434
1433
    throw exception();
1435
1434
  } 
1436
1435
 
1437
 
  pair<SystemVariableMap::iterator, bool> ret= 
1438
 
    system_variable_map.insert(make_pair(lower_name, var));
 
1436
  pair<SystemVariableMap::iterator, bool> ret= system_variable_map.insert(make_pair(lower_name, var));
1439
1437
  if (ret.second == false)
1440
1438
  {
1441
 
    errmsg_printf(error::ERROR, _("Could not add Variable: %s\n"),
1442
 
                  var->getName().c_str());
 
1439
    errmsg_printf(error::ERROR, _("Could not add Variable: %s\n"), var->getName().c_str());
1443
1440
    throw exception();
1444
1441
  }
1445
1442
}