~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.h

  • Committer: Mark Atwood
  • Date: 2009-01-05 04:37:22 UTC
  • mto: (758.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: me@mark.atwood.name-20090105043722-03l4mzcxi4yjjjih
replace sql_print_error etc with errmsg_print

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
#ifndef DRIZZLED_SQL_UDF_H
 
21
#define DRIZZLED_SQL_UDF_H
 
22
 
20
23
/* This file defines structures needed by udf functions */
21
24
 
22
 
#ifdef USE_PRAGMA_INTERFACE
23
 
#pragma interface
24
 
#endif
25
 
 
26
 
#include "item_func.h"
 
25
#include <stdint.h>
 
26
#include <drizzled/function/func.h>
27
27
 
28
28
enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
29
29
 
38
38
void udf_init(void),udf_free(void);
39
39
udf_func *find_udf(const char *name, uint32_t len=0);
40
40
void free_udf(udf_func *udf);
41
 
int mysql_create_function(THD *thd,udf_func *udf);
 
41
int mysql_create_function(Session *session,udf_func *udf);
 
42
 
 
43
#endif /* DRIZZLED_SQL_UDF_H */