Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 17829)
+++ /trunk/Nebulous-Server/Changes	(revision 17830)
@@ -2,4 +2,5 @@
 
 0.12
+    - remove the use of LAST_INSERT_ID() from the new_object_instance query
     - add neb-admin util
     - fix Nebulous::Server::setxattr_object() so that creating a new xattr with
Index: /trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17829)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 17830)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004-2008  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.74 2008-05-21 19:57:19 jhoblitt Exp $
+# $Id: Server.pm,v 1.75 2008-05-28 20:49:34 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -207,7 +207,8 @@
 
         {
+            
             # create instance with no URI
             my $query = $db->prepare_cached( $sql->new_object_instance );
-            $query->execute($vol_id);
+            $query->execute($so_id, $vol_id);
         }
 
Index: /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 17829)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm	(revision 17830)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: SQL.pm,v 1.53 2008-05-27 22:09:35 jhoblitt Exp $
+# $Id: SQL.pm,v 1.54 2008-05-28 20:49:34 jhoblitt Exp $
 
 package Nebulous::Server::SQL;
@@ -40,5 +40,5 @@
     new_object_instance => qq{
         INSERT INTO instance 
-        VALUES (NULL, LAST_INSERT_ID(), ?, 'error', NULL, NULL, NULL, NULL)
+        VALUES (NULL, ?, ?, 'error', NULL, NULL, NULL, NULL)
     },
     new_instance        => qq{
