~jaypipes/drizzle/transaction_log

« back to all changes in this revision

Viewing changes to drizzled/common.h

  • 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:
257
257
enum Item_result {STRING_RESULT=0, REAL_RESULT, INT_RESULT, ROW_RESULT,
258
258
                  DECIMAL_RESULT};
259
259
 
260
 
typedef struct st_udf_args
261
 
{
262
 
  unsigned int arg_count;               /* Number of arguments */
263
 
  enum Item_result *arg_type;           /* Pointer to item_results */
264
 
  char **args;                          /* Pointer to argument */
265
 
  unsigned long *lengths;               /* Length of string arguments */
266
 
  char *maybe_null;                     /* Set to 1 for all maybe_null args */
267
 
  char **attributes;                    /* Pointer to attribute name */
268
 
  unsigned long *attribute_lengths;     /* Length of attribute arguments */
269
 
  void *extension;
270
 
} UDF_ARGS;
271
 
 
272
 
  /* This holds information about the result */
273
 
 
274
 
typedef struct st_udf_init
275
 
{
276
 
  bool maybe_null;          /* 1 if function can return NULL */
277
 
  unsigned int decimals;       /* for real functions */
278
 
  unsigned long max_length;    /* For string functions */
279
 
  char *ptr;                   /* free pointer for function data */
280
 
  bool const_item;          /* 1 if function always returns the same value */
281
 
  void *extension;
282
 
} UDF_INIT;
283
 
/*
284
 
  TODO: add a notion for determinism of the UDF.
285
 
  See Item_udf_func::update_used_tables ()
286
 
*/
287
 
 
288
 
  /* Constants when using compression */
289
 
#define NET_HEADER_SIZE 4               /* standard header size */
290
 
#define COMP_HEADER_SIZE 3              /* compression header extra size */
291
260
 
292
261
#endif /* DRIZZLED_COMMON_H */