IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17830


Ignore:
Timestamp:
May 28, 2008, 10:49:34 AM (18 years ago)
Author:
jhoblitt
Message:

remove the use of LAST_INSERT_ID() from the new_object_instance query

Location:
trunk/Nebulous-Server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r17815 r17830  
    22
    330.12
     4    - remove the use of LAST_INSERT_ID() from the new_object_instance query
    45    - add neb-admin util
    56    - fix Nebulous::Server::setxattr_object() so that creating a new xattr with
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r17761 r17830  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.74 2008-05-21 19:57:19 jhoblitt Exp $
     3# $Id: Server.pm,v 1.75 2008-05-28 20:49:34 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    207207
    208208        {
     209           
    209210            # create instance with no URI
    210211            my $query = $db->prepare_cached( $sql->new_object_instance );
    211             $query->execute($vol_id);
     212            $query->execute($so_id, $vol_id);
    212213        }
    213214
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r17816 r17830  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.53 2008-05-27 22:09:35 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.54 2008-05-28 20:49:34 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        VALUES (NULL, ?, ?, 'error', NULL, NULL, NULL, NULL)
    4343    },
    4444    new_instance        => qq{
Note: See TracChangeset for help on using the changeset viewer.