12 lines
326 B
SQL
12 lines
326 B
SQL
-- vn.companyL10n source
|
|
|
|
CREATE OR REPLACE
|
|
ALGORITHM = UNDEFINED VIEW `vn`.`companyL10n` AS
|
|
select
|
|
`c`.`id` AS `id`,
|
|
ifnull(`ci`.`footnotes`, `c`.`footnotes`) AS `footnotes`
|
|
from
|
|
(`vn`.`company` `c`
|
|
left join `vn`.`companyI18n` `ci` on
|
|
(`ci`.`companyFk` = `c`.`id`
|
|
and `ci`.`lang` = `util`.`LANG`())); |