From a64d00ea075e389213087457702dbdbe952ceb28 Mon Sep 17 00:00:00 2001 From: wangzhe Date: Wed, 27 Sep 2023 03:06:28 -0400 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20label=20=E5=90=8D=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E6=8F=90=E7=A4=BA,=E5=8F=AA=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E3=80=81=E6=95=B0=E5=AD=97=E3=80=81=E4=B8=8B?= =?UTF-8?q?=E5=88=92=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/pl/plpgsql/src/gram.y | 2 +- src/test/regress/expected/b_compatibility.out | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/pl/plpgsql/src/gram.y b/src/common/pl/plpgsql/src/gram.y index 4aff67ea7..2a798b661 100755 --- a/src/common/pl/plpgsql/src/gram.y +++ b/src/common/pl/plpgsql/src/gram.y @@ -9775,7 +9775,7 @@ make_execsql_stmt(int firsttoken, int location) bool insert_array_record = false; int values_end_loc = -1; int before_semi_loc = -1; - const char* err_msg = "The lable name is invalid"; + const char* err_msg = "The label name can only contain letters, digits and underscores"; PLpgSQL_row* row_data = NULL; PLpgSQL_rec* rec_data = NULL; PLpgSQL_var* array_data = NULL; diff --git a/src/test/regress/expected/b_compatibility.out b/src/test/regress/expected/b_compatibility.out index 20efdd4f6..e4ec8c110 100644 --- a/src/test/regress/expected/b_compatibility.out +++ b/src/test/regress/expected/b_compatibility.out @@ -1221,7 +1221,7 @@ insert into tb_1092829 values(n); END loop; END; / -ERROR: The lable name is invalid +ERROR: The label name can only contain letters, digits and underscores LINE 2: “abel1*”: ^ QUERY: DECLARE BEGIN @@ -1248,7 +1248,7 @@ insert into tb_1092829 values(n); END loop; END; / -ERROR: The lable name is invalid +ERROR: The label name can only contain letters, digits and underscores LINE 2: label#: ^ QUERY: DECLARE BEGIN @@ -1275,7 +1275,7 @@ insert into tb_1092829 values(n); END loop; END; / -ERROR: The lable name is invalid +ERROR: The label name can only contain letters, digits and underscores LINE 2: 测试中文: ^ QUERY: DECLARE BEGIN