~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/library.cc

  • Committer: Stewart Smith
  • Date: 2010-02-15 01:56:32 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100215015632-pm7lnxfq5j5uh8kj
move DATABASE() to function plugin. modify parser so that it looks for a function named 'database' when DATABASE() is called. Special case still needed in parser due to hilarity of not-really-reserved words.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
  dlpath.append("/");
69
69
  dlpath.append("lib");
70
70
  dlpath.append(plugin_name);
71
 
  dlpath.append("_plugin");
72
 
#if defined(TARGET_OS_OSX)
73
 
  dlpath.append(".dylib");
74
 
#else
75
 
  dlpath.append(".so");
76
 
#endif
 
71
  dlpath.append("_plugin.so");
77
72
 
78
73
  /* Open new dll handle */
79
74
  void *handle= dlopen(dlpath.c_str(), RTLD_NOW|RTLD_GLOBAL);