~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/cursor.cc

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
int FunctionCursor::open(const char *name, int, uint32_t)
44
44
{
45
 
  (void)name;
46
 
  string temp_name= name;
47
 
  tool= static_cast<Function *>(engine)->getFunction(temp_name); 
 
45
  string tab_name(name);
 
46
  transform(tab_name.begin(), tab_name.end(),
 
47
            tab_name.begin(), ::tolower);
 
48
  tool= static_cast<Function *>(engine)->getFunction(tab_name); 
 
49
//  assert(tool);
 
50
 
 
51
  if (not tool)
 
52
    return HA_ERR_NO_SUCH_TABLE;
48
53
 
49
54
  return 0;
50
55
}