<?php
/* $Id: sqlparser.data.php,v 1.3 2002/07/25 12:28:40 lem9 Exp $ */


/** SQL Parser Matching Data
 *
 * Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
 * http://www.orbis-terrarum.net/?l=people.robbat2
 *
 * This data is used by the SQL Parser to recognize keywords
 *
 * It has been extracted from the lex.h file in the MySQL BK tree
 * (around 4.0.2) as well as the MySQL documentation.
 */

if (!defined('PMA_SQP_DATA_INCLUDED')) {
    define('PMA_SQP_DATA_INCLUDED', 1);

    $PMA_SQPdata_function_name = array (
        'ABS',
        'ACOS',
        'ADDDATE',
        'ASCII',
        'ASIN',
        'ATAN',
        'ATAN2',
        'AVG',
        'BENCHMARK',
        'BIN',
        'BIT_AND',
        'BIT_COUNT',
        'BIT_OR',
        'CEILING',
        'CHARACTER_LENGTH',
        'CHAR_LENGTH',
        'COALESCE',
        'CONCAT',
        'CONCAT_WS',
        'CONNECTION_ID',
        'CONV',
        'COS',
        'COT',
        'COUNT',
        'CURDATE',
        'CURRENT_DATE',
        'CURRENT_TIME',
        'CURRENT_TIMESTAMP',
        'CURTIME',
        'DATABASE',
        'DATE_ADD',
        'DATE_FORMAT',
        'DATE_SUB',
        'DAYNAME',
        'DAYOFMONTH',
        'DAYOFWEEK',
        'DAYOFYEAR',
        'DECODE',
        'DEGREES',
        'ELT',
        'ENCODE',
        'ENCRYPT',
        'EXP',
        'EXPORT_SET',
        'EXTRACT',
        'FIELD',
        'FIND_IN_SET',
        'FLOOR',
        'FORMAT',
        'FROM_DAYS',
        'FROM_UNIXTIME',
        'GET_LOCK',
        'GREATEST',
        'GROUP_UNIQUE_USERS',
        'HEX',
        'IFNULL',
        'INET_ATON',
        'INET_NTOA',
        'INSTR',
        'INTERVAL',
        'ISNULL',
        'LAST_INSERT_ID',
        'LCASE',
        'LEAST',
        'LEFT',
        'LENGTH',
        'LOAD_FILE',
        'LOCATE',
        'LOG',
        'LOG10',
        'LOWER',
        'LPAD',
        'LTRIM',
        'MAKE_SET',
        'MASTER_POS_WAIT',
        'MAX',
        'MD5',
        'MID',
        'MIN',
        'MOD',
        'MONTHNAME',
        'NOW',
        'NULLIF',
        'OCT',
        'OCTET_LENGTH',
        'ORD',
        'PASSWORD',
        'PERIOD_ADD',
        'PERIOD_DIFF',
        'PI',
        'POSITION',
        'POW',
        'POWER',
        'QUARTER',
        'RADIANS',
        'RAND',
        'RELEASE_LOCK',
        'REPEAT',
        'REVERSE',
        'RIGHT',
        'ROUND',
        'RPAD',
        'RTRIM',
        'SEC_TO_TIME',
        'SESSION_USER',
        'SIGN',
        'SIN',
        'SOUNDEX',
        'SPACE',
        'SQRT',
        'STD',
        'STDDEV',
        'STRCMP',
        'SUBDATE',
        'SUBSTRING',
        'SUBSTRING_INDEX',
        'SUM',
        'SYSDATE',
        'SYSTEM_USER',
        'TAN',
        'TIME_FORMAT',
        'TIME_TO_SEC',
        'TO_DATE',
        'TO_DAYS',
        'TRIM',
        'UCASE',
        'UNIQUE_USERS',
        'UNIX_TIMESTAMP',
        'UPPER',
        'USER',
        'VERSION',
        'WEEK',
        'WEEKDAY',
        'YEARWEEK'
    );
    //$PMA_SQPdata_function_name_cnt = count($PMA_SQPdata_function_name);
    $PMA_SQPdata_function_name_cnt = 134;

    $PMA_SQPdata_column_attrib = array (
        'AUTO_INCREMENT',
        'BDB',
        'BERKELEYDB',
        'BINARY',
        'DEFAULT',
        'INNOBASE',
        'INNODB',
        'ISAM',
        'MRG_MYISAM',
        'MYISAM',
        'NATIONAL',
        'PRECISION',
        'UNSIGNED',
        'VARYING',
        'ZEROFILL'
    );
    //$PMA_SQPdata_column_attrib_cnt = count($PMA_SQPdata_column_attrib);
    $PMA_SQPdata_column_attrib_cnt = 15;

    $PMA_SQPdata_reserved_word = array (
        'ACTION',
        'ADD',
        'AFTER',
        'AGAINST',
        'AGGREGATE',
        'ALL',
        'ALTER',
        'ANALYSE',
        'ANALYZE',
        'AND',
        'AS',
        'ASC',
        'AUTOCOMMIT',
        'AVG_ROW_LENGTH',
        'BACKUP',
        'BEGIN',
        'BETWEEN',
        'BOTH',
        'BY',
        'CASCADE',
        'CASE',
        'CHANGE',
        'CHANGED',
        'CHECK',
        'CHECKSUM',
        'COLUMN',
        'COLUMNS',
        'COMMENT',
        'COMMIT',
        'COMMITTED',
        'COMPRESSED',
        'CONCURRENT',
        'CONSTRAINT',
        'CREATE',
        'CROSS',
        'DATA',
        'DATABASE',
        'DATABASES',
        'DAY',
        'DAY_HOUR',
        'DAY_MINUTE',
        'DAY_SECOND',
        'DELAYED',
        'DELAY_KEY_WRITE',
        'DELETE',
        'DESC',
        'DESCRIBE',
        'DISTINCT',
        'DISTINCTROW',
        'DO',
        'DROP',
        'DUMPFILE',
        'DYNAMIC',
        'ELSE',
        'ENCLOSED',
        'END',
        'ESCAPE',
        'ESCAPED',
        'EXISTS',
        'EXPLAIN',
        'EXTENDED',
        'FAST',
        'FIELDS',
        'FILE',
        'FIRST',
        'FIXED',
        'FLUSH',
        'FOR',
        'FOREIGN',
        'FROM',
        'FULL',
        'FULLTEXT',
        'FUNCTION',
        'GEMINI',
        'GEMINI_SPIN_RETRIES',
        'GLOBAL',
        'GRANT',
        'GRANTS',
        'GROUP',
        'HAVING',
        'HEAP',
        'HIGH_PRIORITY',
        'HOSTS',
        'HOUR',
        'HOUR_MINUTE',
        'HOUR_SECOND',
        'IDENTIFIED',
        'IF',
        'IGNORE',
        'IN',
        'INDEX',
        'INFILE',
        'INNER',
        'INSERT',
        'INSERT_ID',
        'INSERT_METHOD',
        'INTO',
        'IS',
        'ISOLATION',
        'JOIN',
        'KEY',
        'KEYS',
        'KILL',
        'LAST_INSERT_ID',
        'LEADING',
        'LEFT',
        'LEVEL',
        'LIKE',
        'LIMIT',
        'LINES',
        'LOAD',
        'LOCAL',
        'LOCK',
        'LOCKS',
        'LOGS',
        'LOW_PRIORITY',
        'MASTER',
        'MASTER_CONNECT_RETRY',
        'MASTER_HOST',
        'MASTER_LOG_FILE',
        'MASTER_LOG_POS',
        'MASTER_PASSWORD',
        'MASTER_PORT',
        'MASTER_USER',
        'MATCH',
        'MAX_ROWS',
        'MEDIUM',
        'MERGE',
        'MIN_ROWS',
        'MINUTE',
        'MINUTE_SECOND',
        'MODE',
        'MODIFY',
        'MONTH',
        'MRG_MYISAM',
        'MYISAM',
        'NATURAL',
        'NO',
        'NOT',
        'NULL',
        'ON',
        'OPEN',
        'OPTIMIZE',
        'OPTION',
        'OPTIONALLY',
        'OR',
        'ORDER',
        'OUTER',
        'OUTFILE',
        'PACK_KEYS',
        'PARTIAL',
        'PASSWORD',
        'PRIMARY',
        'PRIVILEGES',
        'PROCEDURE',
        'PROCESS',
        'PROCESSLIST',
        'PURGE',
        'QUICK',
        'RAID0',
        'RAID_CHUNKS',
        'RAID_CHUNKSIZE',
        'RAID_TYPE',
        'READ',
        'REFERENCES',
        'REGEXP',
        'RELOAD',
        'RENAME',
        'REPAIR',
        'REPEATABLE',
        'REPLACE',
        'RESET',
        'RESTORE',
        'RESTRICT',
        'RETURNS',
        'REVOKE',
        'RIGHT',
        'RLIKE',
        'ROLLBACK',
        'ROW',
        'ROW_FORMAT',
        'ROWS',
        'SECOND',
        'SELECT',
        'SERIALIZABLE',
        'SESSION',
        'SHARE',
        'SHOW',
        'SHUTDOWN',
        'SLAVE',
        'SONAME',
        'SQL_AUTO_IS_NULL',
        'SQL_BIG_RESULT',
        'SQL_BIG_SELECTS',
        'SQL_BIG_TABLES',
        'SQL_BUFFER_RESULT',
        'SQL_LOG_BIN',
        'SQL_LOG_OFF',
        'SQL_LOG_UPDATE',
        'SQL_LOW_PRIORITY_UPDATES',
        'SQL_MAX_JOIN_SIZE',
        'SQL_QUOTE_SHOW_CREATE',
        'SQL_SAFE_UPDATES',
        'SQL_SELECT_LIMIT',
        'SQL_SLAVE_SKIP_COUNTER',
        'SQL_SMALL_RESULT',
        'SQL_WARNINGS',
        'START',
        'STARTING',
        'STATUS',
        'STOP',
        'STRAIGHT_JOIN',
        'STRING',
        'STRIPED',
        'TABLE',
        'TABLES',
        'TEMPORARY',
        'TERMINATED',
        'THEN',
        'TO',
        'TRAILING',
        'TRANSACTION',
        'TRUNCATE',
        'TYPE',
        'UNCOMMITTED',
        'UNION',
        'UNIQUE',
        'UNLOCK',
        'UPDATE',
        'USAGE',
        'USE',
        'USING',
        'VALUES',
        'VARIABLES',
        'WHEN',
        'WHERE',
        'WITH',
        'WORK',
        'WRITE',
        'YEAR_MONTH'
    );
    //$PMA_SQPdata_reserved_word_cnt = count($PMA_SQPdata_reserved_word);
    $PMA_SQPdata_reserved_word_cnt = 239;

    $PMA_SQPdata_column_type = array (
        'BIGINT',
        'BIT',
        'BLOB',
        'BOOL',
        'CHAR',
        'CHARACTER',
        'DATE',
        'DATETIME',
        'DEC',
        'DECIMAL',
        'DOUBLE',
        'ENUM',
        'FLOAT',
        'FLOAT4',
        'FLOAT8',
        'INT',
        'INT1',
        'INT2',
        'INT3',
        'INT4',
        'INT8',
        'INTEGER',
        'LONG',
        'LONGBLOB',
        'LONGTEXT',
        'MEDIUMBLOB',
        'MEDIUMINT',
        'MEDIUMTEXT',
        'MIDDLEINT',
        'NCHAR',
        'NUMERIC',
        'REAL',
        'SET',
        'SMALLINT',
        'TEXT',
        'TIME',
        'TIMESTAMP',
        'TINYBLOB',
        'TINYINT',
        'TINYTEXT',
        'VARBINARY',
        'VARCHAR',
        'YEAR'
    );
    //$PMA_SQPdata_column_type_cnt = count($PMA_SQPdata_column_type);
    $PMA_SQPdata_column_type_cnt = 43;

} // $__PMA_SQP_DATA__
?>
