mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
misc cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6461 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3099d367b8
commit
b60b374d0a
@ -123,23 +123,4 @@ AccountGroup * pgendGetTopGroup (PGBackend *be);
|
||||
void pgendDisable (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 */
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "guid.h"
|
||||
|
||||
#include "account.h"
|
||||
#include "base-autogen.h"
|
||||
#include "kvp-sql.h"
|
||||
#include "PostgresBackend.h"
|
||||
#include "price.h"
|
||||
|
@ -757,7 +757,7 @@ sqlQuery_kvp_build (sqlQuery *sq, KVPPredicateData *kpd)
|
||||
*/
|
||||
|
||||
const char *
|
||||
sqlQuery_build (sqlQuery *sq, Query *q, GNCBook *book)
|
||||
sqlQuery_build (sqlQuery *sq, Query *q)
|
||||
{
|
||||
GList *il, *jl, *qterms, *andterms;
|
||||
QueryTerm *qt;
|
||||
@ -772,7 +772,7 @@ sqlQuery_build (sqlQuery *sq, Query *q, GNCBook *book)
|
||||
gboolean need_entry = FALSE;
|
||||
sort_type_t sorter;
|
||||
|
||||
if (!sq || !q || !book) return NULL;
|
||||
if (!sq || !q) return NULL;
|
||||
|
||||
/* Determine whether the query will need to reference certain
|
||||
* tables. See note above for details. */
|
||||
|
@ -53,7 +53,7 @@ sqlQuery *sqlQuery_new(void);
|
||||
void sql_Query_destroy (sqlQuery *);
|
||||
|
||||
/* 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 */
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "guid.h"
|
||||
|
||||
#include "PostgresBackend.h"
|
||||
#include "base-autogen.h"
|
||||
#include "escape.h"
|
||||
#include "price.h"
|
||||
#include "putil.h"
|
||||
|
@ -486,7 +486,7 @@ test_raw_query (GNCSession *session, Query *q)
|
||||
be = (PGBackend *) gnc_session_get_backend(session);
|
||||
|
||||
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);
|
||||
|
||||
|
@ -45,6 +45,7 @@
|
||||
|
||||
#include "PostgresBackend.h"
|
||||
#include "account.h"
|
||||
#include "base-autogen.h"
|
||||
#include "checkpoint.h"
|
||||
#include "kvp-sql.h"
|
||||
#include "price.h"
|
||||
|
Loading…
Reference in New Issue
Block a user