Difference between revisions of "Template: GetContainers"
(Created page with "<tr> <td><!-- get component name --> {{#cargo_query: tables=ComponentRN,Component |join on=ComponentRN.ComponentId HOLDS Component.Id |fields=ComponentName |where=ComponentId...") |
|||
Line 4: | Line 4: | ||
tables=ComponentRN,Component | tables=ComponentRN,Component | ||
|join on=ComponentRN.ComponentId HOLDS Component.Id | |join on=ComponentRN.ComponentId HOLDS Component.Id | ||
− | |fields= | + | |fields=Component.Name |
− | |where=ComponentId HOLDS '{{{ComponentId}}}' | + | |where=ComponentId HOLDS '{{{ComponentId}}}' AND ComponentRN._pageNamespace="0" |
}} | }} | ||
</td> | </td> | ||
Line 12: | Line 12: | ||
tables=ComponentRN | tables=ComponentRN | ||
|fields=ReleaseNumber | |fields=ReleaseNumber | ||
− | |where=ComponentId HOLDS '{{{ComponentId}}}' AND PrivateEditionReleaseDate="{{{PrivateEditionReleaseDate|}}}" | + | |where=ComponentId HOLDS '{{{ComponentId}}}' AND PrivateEditionReleaseDate="{{{PrivateEditionReleaseDate|}}}" AND ComponentRN._pageNamespace="0" |
}} | }} | ||
</td> | </td> | ||
<tr> | <tr> |
Revision as of 19:05, April 11, 2022
Query: SELECT `cargo__Component`.`Name` AS `Name` FROM `cargo__ComponentRN` LEFT OUTER JOIN `cargo__Component` ON ((`cargo__ComponentRN`.`ComponentId` HOLDS `cargo__Component`.`Id`)) WHERE ComponentId HOLDS '{{{ComponentId}}}' AND `cargo__ComponentRN`.`_pageNamespace`="0" ORDER BY `cargo__Component`.`Name` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS `cargo__Component`.`Id`)) WHERE ComponentId HOLDS '{{{ComponentId}}}' AN' at line 1 (127.0.0.1)
Query: SELECT `ReleaseNumber` AS `ReleaseNumber` FROM `cargo__ComponentRN` WHERE ComponentId HOLDS '{{{ComponentId}}}' AND PrivateEditionReleaseDate="" AND `cargo__ComponentRN`.`_pageNamespace`="0" ORDER BY `ReleaseNumber` LIMIT 100 Function: CargoSQLQuery::run Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'HOLDS '{{{ComponentId}}}' AND PrivateEditionReleaseDate="" AND `cargo__Component' at line 1 (127.0.0.1)