File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
tests/queries/0_stateless Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ void ClientApplicationBase::parseAndCheckOptions(OptionsDescription & options_de
102102 // / Check positional options.
103103 for (const auto & op : parsed.options )
104104 {
105+ // / Skip all options after empty `--`. These are processed separately into the Application configuration.
106+ if (op.string_key .empty () && op.original_tokens [0 ].starts_with (" --" ))
107+ break ;
108+
105109 if (!op.unregistered && op.string_key .empty () && !op.original_tokens [0 ].starts_with (" --" )
106110 && !op.original_tokens [0 ].empty () && !op.value .empty ())
107111 {
Original file line number Diff line number Diff line change 1+ 666
2+ 666
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ CURDIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
4+ # shellcheck source=../shell_config.sh
5+ . " $CURDIR " /../shell_config.sh
6+
7+ ${CLICKHOUSE_LOCAL} --query " SELECT getServerSetting('max_connections')" -- --max_connections=666
8+ ${CLICKHOUSE_LOCAL} --query " SELECT getServerSetting('max_connections')" -- --max_connections 666
You can’t perform that action at this time.
0 commit comments