From b34615793a4ea82c89ff3d8a8182ea4d904a69a9 Mon Sep 17 00:00:00 2001 From: yoku0825 Date: Thu, 9 Nov 2023 17:16:29 +0900 Subject: [PATCH] Fix #266, script get to be worked but not verified the result is correct or not --- offset-extract/offset-extract.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/offset-extract/offset-extract.sh b/offset-extract/offset-extract.sh index 847ffdb..9733dab 100644 --- a/offset-extract/offset-extract.sh +++ b/offset-extract/offset-extract.sh @@ -135,7 +135,14 @@ VIEW_TABLES="" if echo $MYVER | grep -P '^(8\.0)' > /dev/null then LEX_COMMENT='printf ", 0"' - VIEW_TABLES="print_offset TABLE_LIST view_tables" + if echo $MYVER | grep -P '^8\.0\.(3[2-9]|[4-9]\d)' > /dev/null + then + # MySQL 8.0.32 and laters + VIEW_TABLES="print_offset Table_ref view_tables" + else + # MySQL 8.0.32 and ealiers + VIEW_TABLES="print_offset TABLE_LIST view_tables" + fi else LEX_COMMENT="print_offset LEX comment" VIEW_TABLES='printf ", 0"'