890
890
case DRIZZLE_TYPE_VARCHAR: return (length + (length < 256 ? 1: 2));
891
891
case DRIZZLE_TYPE_DATE: return 3;
893
892
case DRIZZLE_TYPE_LONG: return 4;
894
893
case DRIZZLE_TYPE_DOUBLE: return sizeof(double);
895
894
case DRIZZLE_TYPE_DATETIME:
896
896
case DRIZZLE_TYPE_LONGLONG: return 8; /* Don't crash if no int64_t */
897
897
case DRIZZLE_TYPE_NULL: return 0;
898
898
case DRIZZLE_TYPE_BLOB: return 4 + portable_sizeof_char_ptr;