servderive commit fix
[freeside.git] / torrus / bin / srvderive.in
index 6623f1d..f41a721 100644 (file)
@@ -15,7 +15,7 @@
 #  along with this program; if not, write to the Free Software
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 
-# $Id: srvderive.in,v 1.2 2011-06-11 00:20:14 ivan Exp $
+# $Id: srvderive.in,v 1.3 2011-06-11 00:44:48 ivan Exp $
 # Stanislav Sinyagin <ssinyagin@yahoo.com>
 
 # Combine SUM or MAX from several service IDs and create a new one
@@ -328,6 +328,8 @@ for( my $pos = 0; $pos < $n_points; $pos++ )
     }
 }
 
+$dbh->commit or Error($dbh->errstr);
+
 Verbose('Database update finished');
 
 exit($ok ? 0:1);