small hacks to add price support

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4266 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-05-23 16:10:02 +00:00
parent 641055dcf3
commit c21002abac
2 changed files with 15 additions and 2 deletions

View File

@ -1296,10 +1296,21 @@ pgendGetAllTransactions (PGBackend *be, AccountGroup *grp)
/* ============================================================= */
/* ============================================================= */
static gboolean
foreach_price_cb (GNCPrice *pr, gpointer bend)
{
PGBackend *be = (PGBackend *) bend;
pgendPutOnePriceOnly (be, pr);
return TRUE;
}
static void
pgendStorePriceDBNoLock (PGBackend *be, GNCPriceDB *prdb)
{
PERR ("not implemented");
gnc_pricedb_foreach_price (prdb, foreach_price_cb,
(gpointer) be, FALSE);
}
static void
@ -2288,7 +2299,7 @@ pgend_session_begin (GNCBook *sess, const char * sessionid,
/* check the connection status */
if (CONNECTION_BAD == PQstatus(be->connection))
{
PERR("Can't connect to database 'gnucash':\n"
PERR("Can't connect to database 'template1':\n"
"\t%s",
PQerrorMessage(be->connection));
PQfinish (be->connection);

View File

@ -17,8 +17,10 @@ compare_one_only(account)
compare_one_only(modity)
compare_one_only(split)
compare_one_only(transaction)
compare_one_only(price)
put_one_only(account)
put_one_only(modity)
put_one_only(split)
put_one_only(transaction)
put_one_only(price)