| 802 | #define f_is_hex_escape(x) ((x) & FIELDFLAG_HEX_ESCAPE) |
| 803 | |
| 804 | uint pack_length_to_packflag(uint type) |
| 805 | { |
| 806 | switch (type) { |
| 807 | case 1: return f_settype((uint) MYSQL_TYPE_TINY); |
| 808 | case 2: return f_settype((uint) MYSQL_TYPE_SHORT); |
| 809 | case 3: return f_settype((uint) MYSQL_TYPE_INT24); |
| 810 | case 4: return f_settype((uint) MYSQL_TYPE_LONG); |
| 811 | case 8: return f_settype((uint) MYSQL_TYPE_LONGLONG); |
| 812 | } |
| 813 | return 0; // This shouldn't happen |
| 814 | } |
| 815 | |
| 816 | |
| 817 | bool Create_field::init(THD *thd, const char *fld_name, |
no outgoing calls
no test coverage detected