mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Disable table function view in expression
This commit is contained in:
parent
8ff458a2bf
commit
69d4120982
@ -15,8 +15,16 @@
|
||||
namespace DB
|
||||
{
|
||||
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int UNEXPECTED_EXPRESSION;
|
||||
}
|
||||
|
||||
void ASTFunction::appendColumnNameImpl(WriteBuffer & ostr) const
|
||||
{
|
||||
if (name == "view")
|
||||
throw Exception("Table function view cannot be used as an expression", ErrorCodes::UNEXPECTED_EXPRESSION);
|
||||
|
||||
writeString(name, ostr);
|
||||
|
||||
if (parameters)
|
||||
|
@ -0,0 +1 @@
|
||||
SELECT view(SELECT 1); -- { serverError 183 }
|
Loading…
Reference in New Issue
Block a user