MySQL Forums
Forum List  »  Russian

Перестали работать алиасы в подзапросах
Posted by: Artem S.
Date: December 06, 2015 06:28AM

Обновили mysql сервер с 5.6.22 до 5.7.9 и перестали работать алиасы в подзапросах, пишет #1054 - Unknown column 't' in 'where clause', хотя на старой версии mysql все по прежнему работает.

конфиги идентичные, sql_mode одинаковый. куда смотреть, что за настройка мешает работать, не пойму :(

запрос выглядит следующим образом:

SELECT
`id` as `t`,
`title`,
`once`,
(select count(`id`) from `orders_files` where `order_id`='116815' and `type`=`t` and (`version`='41924') ) as `count`,
(select count(`id`) from `orders_files` where `order_id`='116815' and `type`=`t` ) as `count_in_order`
FROM
`orders_filetypes`
WHERE
`required`=1
ORDER BY `sort`, `title`

буду раз любой помощи! Спасибо!

Options: ReplyQuote


Subject
Views
Written By
Posted
Перестали работать алиасы в подзапросах
2284
December 06, 2015 06:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.