~jaypipes/drizzle/transaction_log

« back to all changes in this revision

Viewing changes to plugin/benchmark/benchmarkudf.cc

  • Committer: Jay Pipes
  • Date: 2009-12-22 03:07:38 UTC
  • mfrom: (1143.14.85 build)
  • Revision ID: jpipes@serialcoder-20091222030738-gnb0vyg77fmkt4cj
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
 
20
#include "config.h"
21
21
#include <drizzled/error.h>
22
22
#include <drizzled/session.h>
 
23
#include "mystrings/m_string.h"
23
24
 
24
25
using namespace std;
25
26
using namespace drizzled;
67
68
  {
68
69
    if (args[0]->null_value == false)
69
70
    {
70
 
      llstr(((int64_t) loop_count), buff);
 
71
      int64_t10_to_str((int64_t)loop_count, buff, -10);
71
72
      push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
72
73
                          ER_WRONG_VALUE_FOR_TYPE, ER(ER_WRONG_VALUE_FOR_TYPE),
73
74
                          "count", buff, "benchmark");
133
134
 
134
135
DRIZZLE_DECLARE_PLUGIN
135
136
{
 
137
  DRIZZLE_VERSION_ID,
136
138
  "benchmark",
137
139
  "1.0",
138
140
  "Devananda van der Veen",