#ifndef UNIREG_INCLUDED
#define UNIREG_INCLUDED
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
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
#include "my_global.h"
#include "mysql_version.h"
typedef struct st_ha_create_information HA_CREATE_INFO;
#ifndef NO_ALARM_LOOP
#define NO_ALARM_LOOP
#endif
#define LANGUAGE "english/"
#define ERRMSG_FILE "errmsg.sys"
#define TEMP_PREFIX "MY"
#define LOG_PREFIX "ML"
#define PROGDIR "bin/"
#ifndef MYSQL_DATADIR
#define MYSQL_DATADIR "data/"
#endif
#ifndef SHAREDIR
#define SHAREDIR "share/"
#endif
#ifndef PLUGINDIR
#define PLUGINDIR "lib/plugin"
#endif
#define CURRENT_THD_ERRMSGS current_thd->variables.lc_messages->errmsgs->errmsgs
#define DEFAULT_ERRMSGS my_default_lc_messages->errmsgs->errmsgs
#define ER(X) CURRENT_THD_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER_DEFAULT(X) DEFAULT_ERRMSGS[(X) - ER_ERROR_FIRST]
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : "Invalid error code")
#define ER_THD(thd,X) ((thd)->variables.lc_messages->errmsgs->errmsgs[(X) - \
ER_ERROR_FIRST])
#define ER_THD_OR_DEFAULT(thd,X) ((thd) ? ER_THD(thd, X) : ER_DEFAULT(X))
#define ME_INFO (ME_HOLDTANG+ME_OLDWIN+ME_NOREFRESH)
#define ME_ERROR (ME_BELL+ME_OLDWIN+ME_NOREFRESH)
#define MYF_RW MYF(MY_WME+MY_NABP)
#define SPECIAL_USE_LOCKS 1
#define SPECIAL_NO_NEW_FUNC 2
#define SPECIAL_SKIP_SHOW_DB 4
#define SPECIAL_WAIT_IF_LOCKED 8
#define SPECIAL_SAME_DB_NAME 16
#define SPECIAL_ENGLISH 32
#define SPECIAL_NO_RESOLVE 64
#define SPECIAL_NO_PRIOR 128
#define SPECIAL_BIG_SELECTS 256
#define SPECIAL_NO_HOST_CACHE 512
#define SPECIAL_SHORT_LOG_FORMAT 1024
#define SPECIAL_LOG_QUERIES_NOT_USING_INDEXES 4096
#define store_record(A,B) memcpy((A)->B,(A)->record[0],(size_t) (A)->s->reclength)
#define restore_record(A,B) memcpy((A)->record[0],(A)->B,(size_t) (A)->s->reclength)
#define cmp_record(A,B) memcmp((A)->record[0],(A)->B,(size_t) (A)->s->reclength)
#define empty_record(A) { \
restore_record((A),s->default_values); \
memset((A)->null_flags, 255, (A)->s->null_bytes);\
}
#define READ_ALL 1
#define CHANGE_FRM 2
#define READ_KEYINFO 4
#define EXTRA_RECORD 8
#define DONT_OPEN_TABLES 8
#define DONT_OPEN_MASTER_REG 16
#define EXTRA_LONG_RECORD 16
#define COMPUTE_TYPES 32
#define SEARCH_PRG 64
#define READ_USED_NAMES 128
#define DONT_GIVE_ERROR 256
#define READ_SCREENS 1024
#define DELAYED_OPEN 4096
#define OPEN_VIEW 8192
#define OPEN_VIEW_NO_PARSE 16384
but do not parse view itself */
This flag is used in function get_all_tables() which fills
I_S tables with data which are retrieved from frm files and storage engine
The flag means that we need to open FRM file only to get necessary data.
*/
#define OPEN_FRM_FILE_ONLY 32768
This flag is used in function get_all_tables() which fills
I_S tables with data which are retrieved from frm files and storage engine
The flag means that we need to process tables only to get necessary data.
Views are not processed.
*/
#define OPEN_TABLE_ONLY OPEN_FRM_FILE_ONLY*2
This flag is used in function get_all_tables() which fills
I_S tables with data which are retrieved from frm files and storage engine
The flag means that we need to process views only to get necessary data.
Tables are not processed.
*/
#define OPEN_VIEW_ONLY OPEN_TABLE_ONLY*2
This flag is used in function get_all_tables() which fills
I_S tables with data which are retrieved from frm files and storage engine.
The flag means that we need to open a view using
open_normal_and_derived_tables() function.
*/
#define OPEN_VIEW_FULL OPEN_VIEW_ONLY*2
This flag is used in function get_all_tables() which fills
I_S tables with data which are retrieved from frm files and storage engine.
The flag means that I_S table uses optimization algorithm.
*/
#define OPTIMIZE_I_S_TABLE OPEN_VIEW_FULL*2
The flag means that we need to process trigger files only.
*/
#define OPEN_TRIGGER_ONLY OPTIMIZE_I_S_TABLE*2
This flag is used to instruct tdc_open_view() to check metadata version.
*/
#define CHECK_METADATA_VERSION OPEN_TRIGGER_ONLY*2
#define SC_INFO_LENGTH 4
#define TE_INFO_LENGTH 3
#define MTYP_NOEMPTY_BIT 128
Minimum length pattern before Turbo Boyer-Moore is used
for SELECT "text" LIKE "%pattern%", excluding the two
wildcards in class Item_func_like.
*/
#define MIN_TURBOBM_PATTERN_LEN 3
Defines for binary logging.
Do not decrease the value of BIN_LOG_HEADER_SIZE.
Do not even increase it before checking code.
*/
#define BIN_LOG_HEADER_SIZE 4
#define DEFAULT_KEY_CACHE_NAME "default"
#include "mysqld_error.h"
#include "structs.h"
#include "sql_list.h"
#endif