Fixed an error and added a test

This commit is contained in:
Alexey Milovidov 2020-04-20 07:02:52 +03:00
parent acde587c75
commit be4d20e690
3 changed files with 8 additions and 1 deletions

View File

@ -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
{

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1 @@
SELECT isConstant('a' = 'b');