13 lines
286 B
MySQL
13 lines
286 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`inkL10n`
|
||
|
AS SELECT `k`.`id` AS `id`,
|
||
|
IFNULL(`i`.`name`, `k`.`name`) AS `name`
|
||
|
FROM (
|
||
|
`vn`.`ink` `k`
|
||
|
LEFT JOIN `vn`.`inkI18n` `i` ON(
|
||
|
`i`.`inkFk` = `k`.`id`
|
||
|
AND `i`.`lang` = `util`.`lang`()
|
||
|
)
|
||
|
)
|