You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/01/25 05:25:29 UTC
(doris) 14/37: [fix](ci) add single quote to the value of the session variables when setting it (#30295)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 1aa006c80f1a0c27cb00cbf7776c5533c68947aa
Author: Dongyang Li <he...@qq.com>
AuthorDate: Wed Jan 24 17:55:10 2024 +0800
[fix](ci) add single quote to the value of the session variables when setting it (#30295)
Co-authored-by: stephen <he...@qq.com>
---
regression-test/pipeline/common/doris-utils.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/regression-test/pipeline/common/doris-utils.sh b/regression-test/pipeline/common/doris-utils.sh
index 327f00beac1..df575f59957 100644
--- a/regression-test/pipeline/common/doris-utils.sh
+++ b/regression-test/pipeline/common/doris-utils.sh
@@ -362,7 +362,8 @@ function reset_doris_session_variables() {
query_port=$(get_doris_conf_value "${DORIS_HOME}"/fe/conf/fe.conf query_port)
cl="mysql -h127.0.0.1 -P${query_port} -uroot "
# Variable_name Value Default_Value Changed
- if ${cl} -e'show variables' | awk '{if ($4 == 1){print "set global " $1 "=" $3 ";"}}' >reset_session_variables; then
+ # "\x27" means single quote in awk
+ if ${cl} -e'show variables' | awk '{if ($4 == 1){print "set global " $1 "=\x27" $3 "\x27;"}}' >reset_session_variables; then
cat reset_session_variables
if ${cl} <reset_session_variables; then
echo "INFO: reset session variables to default, succeed"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org