Проблема с UNION
Добавлено: 03 дек 2007, 23:05
Доброго все дня!
Есть такой запрос:
поле script в обеих таблицах Blob, revision - Integer. Запрос под YA и FB.2.0. работал верно. На FB 2.1.0.17081 выходит ошибка:
Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
Datatype BLOB is not supported for sorting operation.
Есть такой запрос:
Код: Выделить всё
SELECT
f.id, CAST('Òåêóùàÿ' AS VARCHAR(7)), 99999 AS revision,
f.script, c.name, f.editiondate
FROM
gd_function f JOIN gd_contact c ON c.id = f.editorkey
WHERE
f.id = :ID
UNION
SELECT
l.id, CAST(l.revision AS VARCHAR(7)), l.revision,
l.script, c.name, l.editiondate
FROM
gd_function_log l JOIN gd_contact c ON c.id = l.editorkey
WHERE
l.functionkey = :ID
ORDER BY 3 DESC
Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
Datatype BLOB is not supported for sorting operation.