122 {
123 switch (type)
124 {
125 case MYSQL_TYPE_BIT: return "BIT";
126 case MYSQL_TYPE_BLOB: return "BLOB";
127 case MYSQL_TYPE_DATE: return "DATE";
128 case MYSQL_TYPE_DATETIME: return "DATETIME";
129 case MYSQL_TYPE_NEWDECIMAL: return "NEWDECIMAL";
130 case MYSQL_TYPE_DECIMAL: return "DECIMAL";
131 case MYSQL_TYPE_DOUBLE: return "DOUBLE";
132 case MYSQL_TYPE_ENUM: return "ENUM";
133 case MYSQL_TYPE_FLOAT: return "FLOAT";
134 case MYSQL_TYPE_GEOMETRY: return "GEOMETRY";
135 case MYSQL_TYPE_INT24: return "INT24";
136 case MYSQL_TYPE_LONG: return "LONG";
137 case MYSQL_TYPE_LONGLONG: return "LONGLONG";
138 case MYSQL_TYPE_LONG_BLOB: return "LONG_BLOB";
139 case MYSQL_TYPE_MEDIUM_BLOB: return "MEDIUM_BLOB";
140 case MYSQL_TYPE_NEWDATE: return "NEWDATE";
141 case MYSQL_TYPE_NULL: return "NULL";
142 case MYSQL_TYPE_SET: return "SET";
143 case MYSQL_TYPE_SHORT: return "SHORT";
144 case MYSQL_TYPE_STRING: return "STRING";
145 case MYSQL_TYPE_TIME: return "TIME";
146 case MYSQL_TYPE_TIMESTAMP: return "TIMESTAMP";
147 case MYSQL_TYPE_TINY: return "TINY";
148 case MYSQL_TYPE_TINY_BLOB: return "TINY_BLOB";
149 case MYSQL_TYPE_VAR_STRING: return "VAR_STRING";
150 case MYSQL_TYPE_YEAR: return "YEAR";
151 default: return "-Unknown-";
152 }
153 }