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/SQL.pm

    r2898 r2902  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.2 2005-01-05 02:44:54 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.3 2005-01-05 03:19:12 jhoblitt Exp $
    44
    55package PS::IPP::IData::Server::SQL;
     
    8383        WHERE so_id = ?
    8484    },
    85     get_object_instances    => qq{
     85    get_object_instances        => qq{
    8686        SELECT storage_object.so_id, uri, assigned_location
    8787        FROM storage_object
     
    8989        USING (so_id)
    9090        WHERE storage_object.ext_id = ?
     91    },
     92    get_storage_volume_byname   => qq{
     93        SELECT uri FROM volume WHERE name = ? ORDER BY rand() LIMIT 1
     94    },
     95    get_storage_volume          => qq{
     96        SELECT uri FROM volume ORDER BY rand() LIMIT 1
    9197    },
    9298);
Note: See TracChangeset for help on using the changeset viewer.