Commit 89987fa1 authored by unknown's avatar unknown
Browse files

This is the addition of the CSV engine "aka tina". Its an example engine that...

This is the addition of the CSV engine "aka tina". Its an example engine that works as a plain text file. 


acconfig.h:
  Adding HAVE CSV rule
acinclude.m4:
  Build option of csv engine
configure.in:
  Update for building CSV
sql/Makefile.am:
  Added files for CSV build
sql/handler.cc:
  Needed options for CSV to be created.
sql/handler.h:
  CSV type engine enum.
sql/mysql_priv.h:
  Addition of the have_csv_db variable.
sql/mysqld.cc:
  Code to show csv option.
sql/set_var.cc:
  Adding have show variables for both csv and example.
parent 325de4eb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -119,6 +119,9 @@
/* Builds Archive Storage Engine */
#undef HAVE_ARCHIVE_DB

/* Builds CSV Storage Engine */
#undef HAVE_CSV_DB

/* fp_except from ieeefp.h */
#undef HAVE_FP_EXCEPT

+31 −0
Original line number Diff line number Diff line
@@ -1363,6 +1363,37 @@ dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_ARCHIVE SECTION
dnl ---------------------------------------------------------------------------

dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_CSVDB
dnl Sets HAVE_CSV_DB if --with-csv-storage-engine is used
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_CSVDB], [
  AC_ARG_WITH([csv-storage-engine],
              [
  --with-csv-storage-engine
                          Enable the CSV Storage Engine],
              [csvdb="$withval"],
              [csvdb=no])
  AC_MSG_CHECKING([for csv storage engine])

  case "$csvdb" in
    yes )
      AC_DEFINE(HAVE_CSV_DB)
      AC_MSG_RESULT([yes])
      [csvdb=yes]
      ;;
    * )
      AC_MSG_RESULT([no])
      [csvdb=no]
      ;;
  esac

])
dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_CSV SECTION
dnl ---------------------------------------------------------------------------


dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_NDBCLUSTER
dnl Sets HAVE_NDBCLUSTER_DB if --with-ndbcluster is used
+1 −0
Original line number Diff line number Diff line
@@ -2717,6 +2717,7 @@ MYSQL_CHECK_BDB
MYSQL_CHECK_INNODB
MYSQL_CHECK_EXAMPLEDB
MYSQL_CHECK_ARCHIVEDB
MYSQL_CHECK_CSVDB
MYSQL_CHECK_NDBCLUSTER

# If we have threads generate some library functions and test programs
+4 −0
Original line number Diff line number Diff line
-- require r/have_csv.require
disable_query_log;
show variables like "have_csv";
enable_query_log;
+4931 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading