Fixed typo in SQL query

This commit is contained in:
Wouter van Oijen 2006-04-28 21:43:41 +00:00
parent a88c9b93c5
commit efe05d8469
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ sub getNamespaceSize {
my $self = shift;
my $expiresModifier = shift || 0;
$self->session->db->write("delete from cache where expires < ?",[time()+$expiresModifier]);
my ($size) = $self->session->db->quickArray("select sum(size) from cache where namepsace=?",[$self->{_namespace}]);
my ($size) = $self->session->db->quickArray("select sum(size) from cache where namespace=?",[$self->{_namespace}]);
return $size;
}