nck-2 / test-rep

0 stars 0 forks source link

Incorrect work of EXIST() with alias #1369

Open githubmanticore opened 1 year ago

githubmanticore commented 1 year ago

First query returns default value, second query returns actual value.

-- Server version: 2.8.0 3f7e35d@181224 dev        

SELECT id, EXIST('bucket', 123456)  AS `bucket` FROM `vk_index_inc_node1` LIMIT 10;        
SELECT id, EXIST('bucket', 123456)  AS `bucket2` FROM `vk_index_inc_node1` LIMIT 10;        

┆Issue is synchronized with this Gitlab issue