~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merge Andrew - Enable boost filesystem requirement and fix linking requirements for it.

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
  }