Skip to content

Commit

Permalink
DRILL-3933: Surround $QUERY variable in double-quotes to avoid asteri…
Browse files Browse the repository at this point in the history
…sk expansion in sqlline script

closes #1538
  • Loading branch information
arina-ielchiieva authored and vdiravka committed Nov 15, 2018
1 parent ded9ba9 commit 904bb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/src/resources/sqlline
Expand Up @@ -91,7 +91,7 @@ if [ -n "$_DRILL_WRAPPER_" ]; then
fi

if [ -n "$QUERY" ] ; then
echo $QUERY | exec $CMD "${SLARGS[@]}"
echo "$QUERY" | exec $CMD "${SLARGS[@]}"
elif [ -n "$FILE" ] ; then
exec $CMD "${SLARGS[@]}" --run=$FILE
else
Expand Down

0 comments on commit 904bb71

Please sign in to comment.