00001 /* Copyright (C) 2003 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; either version 2 of the License, or 00006 (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00016 00030 #ifndef NDB_CONSTANTS_H 00031 #define NDB_CONSTANTS_H 00032 00033 /* 00034 * Data type constants. 00035 */ 00036 00037 #define NDB_TYPE_UNDEFINED 0 00038 00039 #define NDB_TYPE_TINYINT 1 00040 #define NDB_TYPE_TINYUNSIGNED 2 00041 #define NDB_TYPE_SMALLINT 3 00042 #define NDB_TYPE_SMALLUNSIGNED 4 00043 #define NDB_TYPE_MEDIUMINT 5 00044 #define NDB_TYPE_MEDIUMUNSIGNED 6 00045 #define NDB_TYPE_INT 7 00046 #define NDB_TYPE_UNSIGNED 8 00047 #define NDB_TYPE_BIGINT 9 00048 #define NDB_TYPE_BIGUNSIGNED 10 00049 #define NDB_TYPE_FLOAT 11 00050 #define NDB_TYPE_DOUBLE 12 00051 #define NDB_TYPE_OLDDECIMAL 13 00052 #define NDB_TYPE_CHAR 14 00053 #define NDB_TYPE_VARCHAR 15 00054 #define NDB_TYPE_BINARY 16 00055 #define NDB_TYPE_VARBINARY 17 00056 #define NDB_TYPE_DATETIME 18 00057 #define NDB_TYPE_DATE 19 00058 #define NDB_TYPE_BLOB 20 00059 #define NDB_TYPE_TEXT 21 00060 #define NDB_TYPE_BIT 22 00061 #define NDB_TYPE_LONGVARCHAR 23 00062 #define NDB_TYPE_LONGVARBINARY 24 00063 #define NDB_TYPE_TIME 25 00064 #define NDB_TYPE_YEAR 26 00065 #define NDB_TYPE_TIMESTAMP 27 00066 #define NDB_TYPE_OLDDECIMALUNSIGNED 28 00067 #define NDB_TYPE_DECIMAL 29 00068 #define NDB_TYPE_DECIMALUNSIGNED 30 00069 00070 #define NDB_TYPE_MAX 31 00071 00072 00073 /* 00074 * Attribute array type. 00075 */ 00076 00077 #define NDB_ARRAYTYPE_FIXED 0 /* 0 length bytes */ 00078 #define NDB_ARRAYTYPE_SHORT_VAR 1 /* 1 length bytes */ 00079 #define NDB_ARRAYTYPE_MEDIUM_VAR 2 /* 2 length bytes */ 00080 00081 /* 00082 * Attribute storage type. 00083 */ 00084 00085 #define NDB_STORAGETYPE_MEMORY 0 00086 #define NDB_STORAGETYPE_DISK 1 00087 00088 #endif
1.4.7

