IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2008, 10:34:30 AM (18 years ago)
Author:
jhoblitt
Message:

SQL tweaks/testing

Location:
trunk/Nebulous-Server/lib/Nebulous
Files:
2 edited

Legend:

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

    r17831 r18017  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.76 2008-05-28 21:03:20 jhoblitt Exp $
     3# $Id: Server.pm,v 1.77 2008-06-09 20:34:30 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    209209           
    210210            # create instance with no URI
     211#            my $query = $db->prepare_cached( $sql->new_instance );
    211212            my $query = $db->prepare_cached( $sql->new_object_instance );
    212             $query->execute($so_id, $vol_id);
     213            $query->execute($vol_id);
    213214        }
    214215
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r17857 r18017  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.56 2008-05-30 00:15:53 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.57 2008-06-09 20:34:30 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    4040    new_object_instance => qq{
    4141        INSERT INTO instance
    42         VALUES (NULL, LAST_INSERT_ID(), ?, 'error', NULL, NULL, NULL, NULL)
     42        (so_id, vol_id, uri)
     43        VALUES (LAST_INSERT_ID(), ?, 'error')
    4344    },
    4445    new_instance        => qq{
    4546        INSERT INTO instance
    46         VALUES (NULL, ?, ?, 'error', NULL, NULL, NULL, NULL)
     47        (so_id, vol_id, uri)
     48        VALUES (?, ?, 'error')
    4749    },
    4850    get_object          => qq{
Note: See TracChangeset for help on using the changeset viewer.