Support hex string for load data formats

This commit is contained in:
wjhh2008
2024-06-17 20:27:47 +00:00
committed by ob-robot
parent ba29ae32f8
commit 8cf399af82
4 changed files with 25 additions and 8 deletions

View File

@ -10202,19 +10202,19 @@ field_term_list field_term
;
field_term:
TERMINATED BY STRING_VALUE
TERMINATED BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_FIELD_TERMINATED_STR, 1, $3);
}
| OPTIONALLY ENCLOSED BY STRING_VALUE
| OPTIONALLY ENCLOSED BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_OPTIONALLY_CLOSED_STR, 1, $4);
}
| ENCLOSED BY STRING_VALUE
| ENCLOSED BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_CLOSED_STR, 1, $3);
}
| ESCAPED BY STRING_VALUE
| ESCAPED BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_ESCAPED_STR, 1, $3);
}
@ -10290,11 +10290,11 @@ line_term_list line_term
;
line_term:
TERMINATED BY STRING_VALUE
TERMINATED BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_LINE_TERMINATED_STR, 1, $3);
}
| STARTING BY STRING_VALUE
| STARTING BY text_string
{
malloc_non_terminal_node($$, result->malloc_pool_, T_LINE_START_STR, 1, $3);
}