another bug fix

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4540 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-06-08 17:36:24 +00:00
parent f76eb30adc
commit f82f5d75f8
2 changed files with 8 additions and 2 deletions

View File

@ -157,6 +157,11 @@ in), you can log them off manually by issuing the following:
echo "UPDATE gncsession SET time_off='NOW' WHERE time_off = 'infinity';" | psql dbname
Hopefully, you do not need to be warned that this dangerous
if there really are other users logged in. Accessing the
database in single-user mode when there are other users logged
in will result in thier work being clobbered.
Other Options
-------------
The 'options=' and 'tty=' postgres keywords are supported. See the
@ -240,8 +245,8 @@ This list only affects the multi-user and advanced/optional features.
Most of the items on this list are 'critical' in the sense that
multi-user mode is fundamentally broken unless they are fixed.
-- bug: if one user adds a transaction, the second user's starting
balances will come out wrong. Why??
-- bug: if user modifies entry, account starting balances are
set incorrectly.
-- modify checkpoint computation to always occur on fixed dates.
Failure to do so causes the fill-out algorithm to pull in all

View File

@ -287,6 +287,7 @@ pgendTransactionRecomputeCheckpoints (PGBackend *be, Transaction *trans)
" WHERE gncEntry.transGuid = '");
p = guid_to_string_buff (xaccTransGetGUID(trans), p);
p = stpcpy (p, "' AND gncTransaction.transGuid = gncEntry.transGuid "
" AND gncCheckpoint.accountGuid = gncEntry.accountGuid "
" AND date_start <= gncTransaction.date_posted "
" AND date_end > gncTransaction.date_posted;\n"
"COMMIT WORK;\n");