Based on SVN history, put the behavior of the SQL back and fixed the POD and

the tests.
This commit is contained in:
Colin Kuskie 2007-02-25 06:20:54 +00:00
parent 5a379fe91e
commit 4469301092
2 changed files with 4 additions and 4 deletions

View file

@ -1885,7 +1885,7 @@ A hash reference of optional parameters.
head4 assetId
Limit the search to a specific assetId to see if that url exists for that asset.
Excludes an asset, by assetId, for the search for the existance of the url.
=cut
@ -1897,7 +1897,7 @@ sub urlExists {
my $limit = "";
my $placeholders = [ $url ];
if (exists $options->{assetId}) {
$limit = "and assetId=?";
$limit = "and assetId<>?";
push @{ $placeholders }, $options->{assetId};
}
my ($test) = $session->db->quickArray("select count(url) from assetData where url=? $limit", $placeholders);