gnucash unstable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Fri Mar 16 19:52:22 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/8fe2cb6f (commit)
via https://github.com/Gnucash/gnucash/commit/e5561bd7 (commit)
via https://github.com/Gnucash/gnucash/commit/74d94650 (commit)
from https://github.com/Gnucash/gnucash/commit/9b890124 (commit)
commit 8fe2cb6fa885c821afebaaaa51475bf72ed83151
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 16 16:47:11 2018 -0700
Fix date corruption in SQL load.
Four date elements were affected: GncEntry::date, GncEntry::date_entered,
GncInvoice::opened, and GncInvoice::posted. The problem arose during the
cleansing of Timespec from the reports; the setter functions for those
elements were converted to time64 but no provision was made to the SQL
backend to pass them time64 instead of Timespec*.
This commit adds a new column type, CT_TIME64, and changes the column
types for those elements to CT_TIME64.
commit e5561bd7abe0da25f2bebd639779b868cbd6d351
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 16 13:59:04 2018 -0700
Fix lost Bayesian matches in SQL backend.
The import-map-bayes uses a three-part key that uses the same delimiter
as a path and the SQL backend was throwing away everything except the
account guid.
Added more slot types including import-map-bayes ones to the test xml
file to help debug this and to catch it in the future.
Also don't pass std::string.c_str() to a std::vector<std::string>
constructor, just pass the string.
commit 74d94650ed69e43a9a0538818123485fe993d4ef
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Mar 15 16:28:01 2018 -0700
Avoid crash when committing a date outside of the valid range
Insert a NULL in its place.
Summary of changes:
libgnucash/backend/dbi/test/test-dbi.xml | 161 +++++++++++++++++++++
libgnucash/backend/sql/gnc-entry-sql.cpp | 4 +-
libgnucash/backend/sql/gnc-invoice-sql.cpp | 4 +-
libgnucash/backend/sql/gnc-slots-sql.cpp | 7 +-
.../backend/sql/gnc-sql-column-table-entry.cpp | 76 +++++++++-
.../backend/sql/gnc-sql-column-table-entry.hpp | 1 +
6 files changed, 241 insertions(+), 12 deletions(-)
More information about the gnucash-patches
mailing list