mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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
|
||||
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.
|
||||
ast->setAlias(alias);
|
||||
|
Loading…
Reference in New Issue
Block a user