~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_udf.h

  • Committer: Brian Aker
  • Date: 2008-07-13 22:45:08 UTC
  • Revision ID: brian@tangent.org-20080713224508-hb20z4okblotb39a
longlong replacement

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
typedef my_bool (*Udf_func_init)(UDF_INIT *, UDF_ARGS *,  char *);
29
29
typedef void (*Udf_func_any)();
30
30
typedef double (*Udf_func_double)(UDF_INIT *, UDF_ARGS *, uchar *, uchar *);
31
 
typedef longlong (*Udf_func_longlong)(UDF_INIT *, UDF_ARGS *, uchar *,
 
31
typedef int64_t (*Udf_func_int64_t)(UDF_INIT *, UDF_ARGS *, uchar *,
32
32
                                      uchar *);
33
33
 
34
34
typedef struct st_udf_func
91
91
    *null_value=0;
92
92
    return tmp;
93
93
  }
94
 
  longlong val_int(my_bool *null_value)
 
94
  int64_t val_int(my_bool *null_value)
95
95
  {
96
96
    is_null= 0;
97
97
    if (get_arguments())
99
99
      *null_value=1;
100
100
      return 0LL;
101
101
    }
102
 
    Udf_func_longlong func= (Udf_func_longlong) u_d->func;
103
 
    longlong tmp=func(&initid, &f_args, &is_null, &error);
 
102
    Udf_func_int64_t func= (Udf_func_int64_t) u_d->func;
 
103
    int64_t tmp=func(&initid, &f_args, &is_null, &error);
104
104
    if (is_null || error)
105
105
    {
106
106
      *null_value=1;