function _hosting_package_temporary_table in Hosting 7.4
Same name and namespace in other branches
- 6.2 package/hosting_package.instance.inc \_hosting_package_temporary_table()
- 7.3 package/hosting_package.instance.inc \_hosting_package_temporary_table()
2 calls to _hosting_package_temporary_table()
- hosting_migrate_comparison in migrate/
hosting_migrate.module - Compare package schema versions between the current and target platform in temp tables
- hosting_package_comparison in package/
hosting_package.instance.inc - @todo Please document this function.
File
- package/
hosting_package.instance.inc, line 396 - API for mapping packages to various Hosting node types
Code
function _hosting_package_temporary_table($ref) {
static $names = array();
if (!isset($names[$ref])) {
// Generate a unique table name for this $ref.
$names[$ref] = db_query_temporary("SELECT p.nid, p.short_name, p.old_short_name, i.version_code, i.schema_version, i.version, i.status\n FROM {hosting_package} p\n LEFT JOIN {hosting_package_instance} i\n ON p.nid = i.package_id\n WHERE i.rid = :rid and i.platform != :platform", array(
':rid' => $ref,
':platform' => HOSTING_PACKAGE_INSTANCE_EXCLUDE,
));
}
return $names[$ref];
}