summaryrefslogtreecommitdiff
path: root/storage/connect/mycat.h
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-02-12 12:34:14 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2013-02-12 12:34:14 +0100
commit88c76f3b70def1a26f15c7ea23759369ba28392d (patch)
tree87b9e449177ddecf4a12f205da84ab40644e3c42 /storage/connect/mycat.h
parentb91386c2f6964c03de353aa5155e06098055de09 (diff)
downloadmariadb-git-88c76f3b70def1a26f15c7ea23759369ba28392d.tar.gz
All use of a character to represent table types or
catalog functions have been changed: Table_types are now internally represented be enum TABTYPE. Catalog function names are internally translated to a uint. The function GetTypeID was modified accordingly and a new function GetFuncID was implemented in mycat.cc. Modified: ha_connect.cc odbccat.h odbconn.cpp tabodbc.cpp tabfmt.cpp tabmysql.h tabmysql.cpp tabwmi.cpp mycat.h mycat.cc plgdbsem.h reldef.h tabdos.cpp rcmsg.h
Diffstat (limited to 'storage/connect/mycat.h')
-rw-r--r--storage/connect/mycat.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/storage/connect/mycat.h b/storage/connect/mycat.h
index 3019fa96b98..d578a5a43d7 100644
--- a/storage/connect/mycat.h
+++ b/storage/connect/mycat.h
@@ -1,4 +1,4 @@
-/* Copyright (C) Olivier Bertrand 2004 - 2011
+/* Copyright (C) Olivier Bertrand 2004 - 2013
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -24,7 +24,18 @@
#include "block.h"
#include "catalog.h"
-char GetTypeID(const char *type);
+// Possible value for catalog functions
+#define FNC_NO (1 << 0) // Not a catalog table
+#define FNC_COL (1 << 1) // Column catalog function
+#define FNC_TABLE (1 << 2) // Table catalog function
+#define FNC_DSN (1 << 3) // Data Source catalog function
+#define FNC_DRIVER (1 << 4) // Column catalog function
+#define FNC_NIY (1 << 5) // Catalog function NIY
+
+typedef class ha_connect *PHC;
+
+TABTYPE GetTypeID(const char *type);
+uint GetFuncID(const char *func);
/***********************************************************************/
/* MYCAT: class for managing the CONNECT plugin DB items. */