| 916 | */ |
| 917 | |
| 918 | DATE_TIME_FORMAT |
| 919 | *date_time_format_make(timestamp_type format_type, |
| 920 | const char *format_str, uint format_length) |
| 921 | { |
| 922 | DATE_TIME_FORMAT tmp; |
| 923 | |
| 924 | if (format_length && format_length < 255 && |
| 925 | !parse_date_time_format(format_type, format_str, |
| 926 | format_length, &tmp)) |
| 927 | { |
| 928 | tmp.format.str= (char*) format_str; |
| 929 | tmp.format.length= format_length; |
| 930 | return date_time_format_copy((THD *)0, &tmp); |
| 931 | } |
| 932 | return 0; |
| 933 | } |
| 934 | |
| 935 | |
| 936 | /* |
nothing calls this directly
no test coverage detected