IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2008, 4:26:33 PM (18 years ago)
Author:
jhoblitt
Message:

fix issues causes by adding fkey's to the instance table

File:
1 edited

Legend:

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

    r16264 r16265  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.46 2008-01-30 00:19:06 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.47 2008-01-31 02:26:33 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    4040    new_object_instance => qq{
    4141        INSERT INTO instance
    42         VALUES (NULL, LAST_INSERT_ID(), 0, 'error', NULL, NULL, NULL, NULL)
     42        VALUES (NULL, LAST_INSERT_ID(), ?, 'error', NULL, NULL, NULL, NULL)
    4343    },
    4444    new_instance        => qq{
    4545        INSERT INTO instance
    46         VALUES (NULL, ?, 0, 'error', NULL,NULL, NULL, NULL)
     46        VALUES (NULL, ?, ?, 'error', NULL, NULL, NULL, NULL)
    4747    },
    4848    get_object          => qq{
     
    253253            count(mountedvol.vol_id) > 0 as recoverable
    254254        FROM storage_object
     255        JOIN storage_object_attr
     256            USING(so_id)
     257        JOIN storage_object_xattr
     258            ON storage_object.so_id = storage_object_xattr.so_id
     259            AND storage_object_xattr.name = 'copies'
    255260        JOIN instance
    256261            USING(so_id)
Note: See TracChangeset for help on using the changeset viewer.