IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2005, 5:19:12 PM (22 years ago)
Author:
jhoblitt
Message:

remove raw SQl from _get_storage_volume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r2901 r2902  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.4 2005-01-05 03:10:08 jhoblitt Exp $
     3# $Id: Server.pm,v 1.5 2005-01-05 03:19:12 jhoblitt Exp $
    44
    55package PS::IPP::IData::Server;
     
    631631            my $rows;
    632632            if ( $name ) {
    633                 $query = $db->prepare( qq{ SELECT uri FROM volume WHERE name = ? ORDER BY rand() LIMIT 1 } );
     633                $query = $db->prepare( $sql->get_storage_volume_byname );
    634634                $rows = $query->execute( $name );
    635635            } else {
    636                 $query = $db->prepare( qq{ SELECT uri FROM volume ORDER BY rand() LIMIT 1 } );
     636                $query = $db->prepare( $sql->get_storage_volume );
    637637                $rows = $query->execute;
    638638            }
Note: See TracChangeset for help on using the changeset viewer.