misc cleanup

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6461 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2002-01-01 02:23:21 +00:00
parent 3099d367b8
commit b60b374d0a
7 changed files with 7 additions and 23 deletions

View File

@ -123,23 +123,4 @@ AccountGroup * pgendGetTopGroup (PGBackend *be);
void pgendDisable (PGBackend *be); void pgendDisable (PGBackend *be);
void pgendEnable (PGBackend *be); void pgendEnable (PGBackend *be);
void pgendStoreOneTransactionOnly (PGBackend *be, Transaction *ptr, sqlBuild_QType update);
void pgendPutOneAccountOnly (PGBackend *be, Account *ptr);
void pgendPutOneCommodityOnly (PGBackend *be, gnc_commodity *ptr);
void pgendPutOnePriceOnly (PGBackend *be, GNCPrice *ptr);
void pgendPutOneSplitOnly (PGBackend *be, Split *ptr);
void pgendPutOneTransactionOnly (PGBackend *be, Transaction *ptr);
int pgendAccountCompareVersion (PGBackend *be, Account *ptr);
int pgendPriceCompareVersion (PGBackend *be, GNCPrice *ptr);
int pgendTransactionCompareVersion (PGBackend *be, Transaction *ptr);
void pgendStoreAuditAccount (PGBackend *be, Account *ptr, sqlBuild_QType update);
void pgendStoreAuditPrice (PGBackend *be, GNCPrice *ptr, sqlBuild_QType update);
void pgendStoreAuditSplit (PGBackend *be, Split *ptr, sqlBuild_QType update);
void pgendStoreAuditTransaction (PGBackend *be, Transaction *ptr, sqlBuild_QType update);
int pgendTransactionGetDeletedVersion (PGBackend *be, Transaction *ptr);
#endif /* POSTGRES_BACKEND_H */ #endif /* POSTGRES_BACKEND_H */

View File

@ -41,6 +41,7 @@
#include "guid.h" #include "guid.h"
#include "account.h" #include "account.h"
#include "base-autogen.h"
#include "kvp-sql.h" #include "kvp-sql.h"
#include "PostgresBackend.h" #include "PostgresBackend.h"
#include "price.h" #include "price.h"

View File

@ -757,7 +757,7 @@ sqlQuery_kvp_build (sqlQuery *sq, KVPPredicateData *kpd)
*/ */
const char * const char *
sqlQuery_build (sqlQuery *sq, Query *q, GNCBook *book) sqlQuery_build (sqlQuery *sq, Query *q)
{ {
GList *il, *jl, *qterms, *andterms; GList *il, *jl, *qterms, *andterms;
QueryTerm *qt; QueryTerm *qt;
@ -772,7 +772,7 @@ sqlQuery_build (sqlQuery *sq, Query *q, GNCBook *book)
gboolean need_entry = FALSE; gboolean need_entry = FALSE;
sort_type_t sorter; sort_type_t sorter;
if (!sq || !q || !book) return NULL; if (!sq || !q) return NULL;
/* Determine whether the query will need to reference certain /* Determine whether the query will need to reference certain
* tables. See note above for details. */ * tables. See note above for details. */

View File

@ -53,7 +53,7 @@ sqlQuery *sqlQuery_new(void);
void sql_Query_destroy (sqlQuery *); void sql_Query_destroy (sqlQuery *);
/* convert a gnc query to an sql query */ /* convert a gnc query to an sql query */
const char *sqlQuery_build (sqlQuery *, Query *, GNCBook *); const char *sqlQuery_build (sqlQuery *, Query *);
#endif /* GNC_QUERY_H */ #endif /* GNC_QUERY_H */

View File

@ -39,6 +39,7 @@
#include "guid.h" #include "guid.h"
#include "PostgresBackend.h" #include "PostgresBackend.h"
#include "base-autogen.h"
#include "escape.h" #include "escape.h"
#include "price.h" #include "price.h"
#include "putil.h" #include "putil.h"

View File

@ -486,7 +486,7 @@ test_raw_query (GNCSession *session, Query *q)
be = (PGBackend *) gnc_session_get_backend(session); be = (PGBackend *) gnc_session_get_backend(session);
sq = sqlQuery_new(); sq = sqlQuery_new();
sql_query_string = sqlQuery_build (sq, q, gnc_session_get_book(session)); sql_query_string = sqlQuery_build (sq, q);
result = PQexec (be->connection, sql_query_string); result = PQexec (be->connection, sql_query_string);

View File

@ -45,6 +45,7 @@
#include "PostgresBackend.h" #include "PostgresBackend.h"
#include "account.h" #include "account.h"
#include "base-autogen.h"
#include "checkpoint.h" #include "checkpoint.h"
#include "kvp-sql.h" #include "kvp-sql.h"
#include "price.h" #include "price.h"