~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.h

  • Committer: Stewart Smith
  • Date: 2008-12-18 23:54:47 UTC
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: stewart@flamingspork.com-20081218235447-qf6dofgd6guwefo2
fix RENAME TABLE

(problem was missing hton to mysql_rename_table)

If engine implements table_exists_in_engine we get the hton from there.

Else, we reintroduce the mysql_frm_type hackery (temporarily, it *will* go away again with FRM removal).

also fix rename test: no views, plus current FLUSH LOCKS bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
19
19
 
20
20
/* Functions to create an item. Used by sql/sql_yacc.yy */
21
21
 
22
 
#ifndef DRIZZLED_ITEM_CREATE_H
23
 
#define DRIZZLED_ITEM_CREATE_H
 
22
#ifndef DRIZZLE_SERVER_ITEM_CREATE_H
 
23
#define DRIZZLE_SERVER_ITEM_CREATE_H
24
24
 
25
25
#include <drizzled/item/func.h>
26
 
#include <drizzled/plugin/function.h>
27
26
 
28
 
namespace drizzled
29
 
{
 
27
struct udf_func;
30
28
 
31
29
/**
32
30
  Public function builder interface.
113
111
 
114
112
/**
115
113
  Find the native function builder associated with a given function name.
 
114
  @param session The current thread
116
115
  @param name The native function name
117
116
  @return The native function builder associated with the name, or NULL
118
117
*/
119
 
extern Create_func * find_native_function_builder(LEX_STRING name);
 
118
extern Create_func * find_native_function_builder(Session *session, LEX_STRING name);
120
119
 
121
120
 
122
121
/**
143
142
    @param item_list The list of arguments to the function, can be NULL
144
143
    @return An item representing the parsed function call
145
144
  */
146
 
  Item *create(Session *session,
147
 
               const plugin::Function *fct,
148
 
               List<Item> *item_list);
 
145
  Item *create(Session *session, udf_func *fct, List<Item> *item_list);
149
146
 
150
147
  /** Singleton. */
151
148
  static Create_udf_func s_singleton;
177
174
int item_create_init();
178
175
void item_create_cleanup();
179
176
 
180
 
} /* namespace drizzled */
181
 
 
182
 
#endif /* DRIZZLED_ITEM_CREATE_H */
 
177
#endif /* DRIZZLE_SERVER_ITEM_CREATE_H */