r18239 - gnucash/trunk/src/backend/sql - Fix bug 589418: commodities	were not being stored properly. The old code used an INSERT if a
    Phil Longstaff 
    plongstaff at code.gnucash.org
       
    Sat Aug  8 12:19:58 EDT 2009
    
    
  
Author: plongstaff
Date: 2009-08-08 12:19:57 -0400 (Sat, 08 Aug 2009)
New Revision: 18239
Trac: http://svn.gnucash.org/trac/changeset/18239
Modified:
   gnucash/trunk/src/backend/sql/gnc-commodity-sql.c
Log:
Fix bug 589418: commodities were not being stored properly.  The old code used an INSERT if a
completely new db was being saved or if the object was a new object.  This didn't handle the case
where a currency (all of which are created at startup time) is used for the first time in an
existing file.  In this case, the commodity would *not* be stored.  This was an attempt to avoid
testing each time to see whether the commodity needed to be stored or not.  For now, the test
every time is re-instated.
    
    
More information about the gnucash-patches
mailing list