Commit 597dc9a8 authored by unknown's avatar unknown
Browse files

Fix for plugins work


storage/csv/Makefile.am:
  Build currently depends on sql/sql_yacc.h
storage/example/Makefile.am:
  Build currently depends on sql/sql_yacc.h
storage/example/ha_example.cc:
  remove old handlerton entries
parent c3c43e12
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ INCLUDES = -I$(top_srcdir)/include \
                        -I$(srcdir)
WRAPLIBS=

$(top_builddir)/sql/sql_yacc.h: $(top_builddir)/sql/sql_yacc.yy
	( cd $(top_builddir)/sql && $(MAKE) sql_yacc.cc )

pkglib_LTLIBRARIES =	ha_csv.la

ha_csv_la_LDFLAGS =	-module
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ INCLUDES = -I$(top_srcdir)/include \
                        -I$(srcdir)
WRAPLIBS=

$(top_builddir)/sql/sql_yacc.h: $(top_builddir)/sql/sql_yacc.yy
	( cd $(top_builddir)/sql && $(MAKE) sql_yacc.cc )

pkglib_LTLIBRARIES =	ha_example.la

ha_example_la_LDFLAGS =	-module
+3 −6
Original line number Diff line number Diff line
@@ -67,11 +67,11 @@
#pragma implementation        // gcc: Class implementation
#endif

#include "../mysql_priv.h"
#include <plugin.h>

#include "mysql_priv.h"
#include "ha_example.h"

#include <plugin.h>

static handler* example_create_handler(TABLE_SHARE *table);
static int example_init_func();

@@ -100,12 +100,9 @@ handlerton example_hton= {
  example_create_handler,    /* Create a new handler */
  NULL,    /* Drop a database */
  NULL,    /* Panic call */
  NULL,    /* Release temporary latches */
  NULL,    /* Update Statistics */
  NULL,    /* Start Consistent Snapshot */
  NULL,    /* Flush logs */
  NULL,    /* Show status */
  NULL,    /* Replication Report Sent Binlog */
  HTON_CAN_RECREATE
};