gnucash unstable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Thu Nov 23 15:16:45 EST 2017
Updated via https://github.com/Gnucash/gnucash/commit/9c4635e3 (commit)
via https://github.com/Gnucash/gnucash/commit/937f8c50 (commit)
from https://github.com/Gnucash/gnucash/commit/2cbfc5bb (commit)
commit 9c4635e3930f6026080cf18ea7ca92133733c944
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Nov 23 11:41:09 2017 -0800
Bug 784623 - GNUCash does not work with sql backend.
Wherin the problem is that MySQL's TIMESTAMP has a date range of
1970-01-01 00:00:01 to 2038-01-19 03:14:07 and is unable to handle
time_t of 0. MySQL's TIMESTAMP also assumes that input is in the server's
timezone and adjusts it to UTC. GnuCash has already done that conversion.
commit 937f8c508301a26ede211ee4ed06ad7a91bd2198
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Nov 21 18:12:30 2017 -0800
Set GncSqlObjectBackend::m_version to the appropriate TABLE_VERSION.
For each subclass, getting rid of GNC_SQL_OBJECT_BACKEND_VERSION which
was a bit misguided.
Also remove the bogus test the skipped loading a table if its version
didn't match GNC_SQL_OBJECT_BACKEND_VERSION which was even more misguided.
Summary of changes:
libgnucash/backend/dbi/gnc-dbiproviderimpl.hpp | 2 +-
libgnucash/backend/sql/gnc-account-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-bill-term-sql.cpp | 4 ++--
libgnucash/backend/sql/gnc-book-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-budget-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-commodity-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-customer-sql.cpp | 4 ++--
libgnucash/backend/sql/gnc-employee-sql.cpp | 4 ++--
libgnucash/backend/sql/gnc-entry-sql.cpp | 5 +++--
libgnucash/backend/sql/gnc-invoice-sql.cpp | 5 +++--
libgnucash/backend/sql/gnc-job-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-lots-sql.cpp | 4 ++--
libgnucash/backend/sql/gnc-order-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-price-sql.cpp | 11 +++++++----
libgnucash/backend/sql/gnc-recurrence-sql.cpp | 4 ++--
libgnucash/backend/sql/gnc-schedxaction-sql.cpp | 2 +-
libgnucash/backend/sql/gnc-slots-sql.cpp | 11 ++++++++---
libgnucash/backend/sql/gnc-sql-backend.cpp | 1 -
libgnucash/backend/sql/gnc-sql-object-backend.hpp | 1 -
libgnucash/backend/sql/gnc-tax-table-sql.cpp | 6 +++---
libgnucash/backend/sql/gnc-transaction-sql.cpp | 7 ++++---
libgnucash/backend/sql/gnc-vendor-sql.cpp | 2 +-
22 files changed, 47 insertions(+), 38 deletions(-)
More information about the gnucash-patches
mailing list