mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Fixed an error and added a test
This commit is contained in:
parent
acde587c75
commit
be4d20e690
@ -748,7 +748,12 @@ private:
|
||||
|
||||
if (c0_const && c1_const)
|
||||
{
|
||||
return executeString(block, result, c0_const->convertToFullColumn().get(), c1_const->convertToFullColumn().get());
|
||||
auto res = executeString(block, result, &c0_const->getDataColumn(), &c1_const->getDataColumn());
|
||||
if (!res)
|
||||
return false;
|
||||
|
||||
block.getByPosition(result).column = ColumnConst::create(block.getByPosition(result).column, c0_const->size());
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
1
tests/queries/0_stateless/01251_string_comparison.sql
Normal file
1
tests/queries/0_stateless/01251_string_comparison.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT isConstant('a' = 'b');
|
Loading…
Reference in New Issue
Block a user