number_of_flash_references
Counts the number of references to a particular flash.
Tentative (is this correct?): this represents the number of photos in the database captured using the specified flash.
To retrieve the number of references to a particular flash.
CREATE FUNCTION number_of_flash_references(INTEGER) RETURNS BIGINT AS 'select count(photo_tech.identifier) from photo_tech, flash where photo_tech.flash=flash.identifier and flash.identifier = $1' LANGUAGE 'sql';
Version 2.5
Still in use
= Version 2.5 =
CREATE FUNCTION number_of_flash_references(INTEGER) RETURNS BIGINT AS 'select count(photo_tech.identifier) from photo_tech, flash where photo_tech.flash=flash.identifier and flash.identifier = $1' LANGUAGE 'sql';