mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Don't use type conversion with String query parameters
This commit is contained in:
parent
8e90b7d446
commit
6b1c86c6ec
@ -102,7 +102,10 @@ void ReplaceQueryParameterVisitor::visitQueryParameter(ASTPtr & ast)
|
|||||||
else
|
else
|
||||||
literal = temp_column[0];
|
literal = temp_column[0];
|
||||||
|
|
||||||
ast = addTypeConversionToAST(std::make_shared<ASTLiteral>(literal), type_name);
|
if (typeid_cast<const DataTypeString *>(&data_type))
|
||||||
|
ast = std::make_shared<ASTLiteral>(literal);
|
||||||
|
else
|
||||||
|
ast = addTypeConversionToAST(std::make_shared<ASTLiteral>(literal), type_name);
|
||||||
|
|
||||||
/// Keep the original alias.
|
/// Keep the original alias.
|
||||||
ast->setAlias(alias);
|
ast->setAlias(alias);
|
||||||
|
Loading…
Reference in New Issue
Block a user