[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3976] trunk/LedgerSMB/OE.pm



Revision: 3976
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3976&view=rev
Author:   ehuelsmann
Date:     2011-11-10 22:34:03 +0000 (Thu, 10 Nov 2011)
Log Message:
-----------
Fix name of sequence to get the next value from - found by haso on irc.

Modified Paths:
--------------
    trunk/LedgerSMB/OE.pm

Modified: trunk/LedgerSMB/OE.pm
===================================================================
--- trunk/LedgerSMB/OE.pm	2011-11-10 21:23:47 UTC (rev 3975)
+++ trunk/LedgerSMB/OE.pm	2011-11-10 22:34:03 UTC (rev 3976)
@@ -364,7 +364,7 @@
     }
     my $did_insert = 0;
     if ( !$form->{id} ) {
-        $query = qq|SELECT nextval('id')|;
+        $query = qq|SELECT nextval('oe_id_seq')|;
         $sth   = $dbh->prepare($query);
         $sth->execute || $form->dberror($query);
         ( $form->{id} ) = $sth->fetchrow_array;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.