~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/enum.cc

  • Committer: earney
  • Date: 2010-10-04 13:15:05 UTC
  • mto: (1813.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1814.
  • Revision ID: earney@earney.homedns.org-20101004131505-1mknj0drou0am13f
removed old commented out statements and uncommmeted out first occurance of stringstream in date.cc since it sets the precision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
 
132
132
  if (from <= 0 || (uint64_t) from > typelib->count)
133
133
  {
134
 
    /* Convert the integer to a string using stringstream */
135
 
    //std::stringstream ss;
136
 
    //std::string tmp;
137
 
    //ss << from; ss >> tmp;
 
134
    /* Convert the integer to a string using boost::lexical_cast */
138
135
    std::string tmp(boost::lexical_cast<std::string>(from));
139
136
 
140
137
    my_error(ER_INVALID_ENUM_VALUE, MYF(ME_FATALERROR), tmp.c_str());