~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/from_unixtime.cc

  • Committer: Patrick Crews
  • Date: 2010-08-09 16:31:29 UTC
  • mto: (1711.1.21 build)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: gleebix@gmail.com-20100809163129-jh0jlwejpuefjrok
Updated test results with changes due to optimizer bug fix.  EXPLAIN output now includes 'Using where' for several queries that didn't previously have this output

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
#include <boost/lexical_cast.hpp>
 
21
 
22
22
#include "drizzled/function/time/from_unixtime.h"
23
23
#include "drizzled/session.h"
24
24
#include "drizzled/temporal.h"
85
85
  if (! temporal.from_time_t((time_t) tmp))
86
86
  {
87
87
    null_value= true;
88
 
    std::string tmp_string(boost::lexical_cast<std::string>(tmp));
 
88
    std::stringstream ss;
 
89
    std::string tmp_string;
 
90
    ss << tmp; ss >> tmp_string;
89
91
    my_error(ER_INVALID_UNIX_TIMESTAMP_VALUE, MYF(0), tmp_string.c_str());
90
92
    return 0;
91
93
  }