00001 // ----------------------------------------------------------------------^ 00002 // Copyright (C) 2004, 2005, 2006, 2007, 2008 Giorgio Calderone 00003 // (mailto: <gcalderone@ifc.inaf.it>) 00004 // 00005 // This file is part of MCS. 00006 // 00007 // MCS is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // MCS is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with MCS; if not, write to the Free Software 00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 // 00021 // ----------------------------------------------------------------------$ 00022 00023 00024 /* -------- FROM MYSQL DOCUMENTATION --------- 00025 buffer_type Value SQL Type C Type 00026 MYSQL_TYPE_TINY TINYINT char 00027 MYSQL_TYPE_SHORT SMALLINT short int 00028 MYSQL_TYPE_INT24 MEDIUMINT int 00029 MYSQL_TYPE_LONG INT int 00030 MYSQL_TYPE_LONGLONG BIGINT long long int 00031 MYSQL_TYPE_FLOAT FLOAT float 00032 MYSQL_TYPE_DOUBLE DOUBLE double 00033 MYSQL_TYPE_TIME TIME MYSQL_TIME --> struct tm 00034 MYSQL_TYPE_DATE DATE MYSQL_TIME --> struct tm 00035 MYSQL_TYPE_DATETIME DATETIME MYSQL_TIME --> struct tm 00036 MYSQL_TYPE_TIMESTAMP TIMESTAMP MYSQL_TIME --> struct tm 00037 MYSQL_TYPE_STRING CHAR 00038 MYSQL_TYPE_VAR_STRING VARCHAR 00039 MYSQL_TYPE_TINY_BLOB TINYBLOB/TINYTEXT 00040 MYSQL_TYPE_BLOB BLOB/TEXT memory buffer 00041 MYSQL_TYPE_MEDIUM_BLOB MEDIUMBLOB/MEDIUMTEXT 00042 MYSQL_TYPE_LONG_BLOB LONGBLOB/LONGTEXT 00043 */ 00044 00045 00046 #ifndef DEF_MCSTYPES_HH 00047 #define DEF_MCSTYPES_HH 00048 00049 00053 enum Types { 00054 TINY , 00055 SMALL , 00056 MEDIUM , 00057 INT , 00058 BIGINT , 00059 FLOAT , 00060 DOUBLE , 00061 STRING , 00062 TIME , 00063 TINY_BLOB , 00064 BLOB , 00065 POINTER 00066 }; 00067 00068 typedef enum Types Types; 00069 00070 #endif
![]() |
MCS (My Customizable Server) ver. 0.3.3-alpha3
|