Skip to content

Commit

Permalink
Make the test compatible with different versions of curl #2490
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Jul 4, 2018
1 parent 202b34c commit 41c8e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/tests/queries/0_stateless/00625_query_in_form_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh

${CLICKHOUSE_CURL} "${CLICKHOUSE_URL}?query=select" -X POST -F 'query=" 1;"' 2>/dev/null
${CLICKHOUSE_CURL} "${CLICKHOUSE_URL}?query=select" -X POST --form-string 'query= 1;' 2>/dev/null

echo -ne '1,Hello\n2,World\n' | ${CLICKHOUSE_CURL} -sSF 'file=@-' "${CLICKHOUSE_URL}?file_format=CSV&file_types=UInt8,String&query=SELE" -X POST -F 'query="CT * FROM file"' 2>/dev/null
echo -ne '1,Hello\n2,World\n' | ${CLICKHOUSE_CURL} -sS -F 'file=@-' "${CLICKHOUSE_URL}?file_format=CSV&file_types=UInt8,String&query=SELE" -X POST --form-string 'query=CT * FROM file' 2>/dev/null

0 comments on commit 41c8e9c

Please sign in to comment.