mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/backend/postgres/test/run-tests.sh: small fix from
hawkfan to get tests to work when building outside srcdir. * src/backend/postgres/putil.c: fix a bug introduced by Matthew -- ANSI C does not allow you to declare a variable in the middle of an expression. Move the declaration to the top of the function. * src/backend/postgres/functions.sql: * src/backend/postgres/table-audit.sql: We don't need the trailing semi-colon because the #include adds one. The double semi-colon causes build failures in some cases. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9311 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
99c8a23ab9
commit
c4f465d164
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2003-09-14 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/backend/postgres/test/run-tests.sh: small fix from
|
||||
hawkfan to get tests to work when building outside srcdir.
|
||||
* src/backend/postgres/putil.c: fix a bug introduced by Matthew --
|
||||
ANSI C does not allow you to declare a variable in the middle
|
||||
of an expression. Move the declaration to the top of the function.
|
||||
* src/backend/postgres/functions.sql:
|
||||
* src/backend/postgres/table-audit.sql:
|
||||
We don't need the trailing semi-colon because the #include adds
|
||||
one. The double semi-colon causes build failures in some cases.
|
||||
|
||||
2003-09-13 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/import-export/ofx/gnc-ofx-import.c: use <libofx/libofx.h>
|
||||
|
@ -66,4 +66,4 @@
|
||||
" gncTransaction.currency = gncCommodity.commodity' \n"
|
||||
" LANGUAGE 'sql'; \n"
|
||||
" \n"
|
||||
"-- end of file";
|
||||
"-- end of file"
|
||||
|
@ -48,6 +48,7 @@ static short module = MOD_BACKEND;
|
||||
ExecStatusType execQuery(PGBackend *be, const char * q) {
|
||||
PGresult * result;
|
||||
ExecStatusType status;
|
||||
gchar * msg;
|
||||
|
||||
ENTER(" ");
|
||||
|
||||
@ -68,7 +69,7 @@ ExecStatusType execQuery(PGBackend *be, const char * q) {
|
||||
}
|
||||
|
||||
status = PQresultStatus(result);
|
||||
gchar * msg = (gchar *)PQresultErrorMessage(result);
|
||||
msg = (gchar *)PQresultErrorMessage(result);
|
||||
PINFO("Result status: %s/%s",
|
||||
PQresStatus(status), (strlen(msg)) > 0 ? msg : "(No Message)");
|
||||
PINFO("Number of rows affected: %d", atoi(PQcmdTuples(result)));
|
||||
|
@ -165,4 +165,4 @@
|
||||
"CREATE INDEX gncSplitTrail_split_idx ON gncSplitTrail (splitGuid); \n"
|
||||
"CREATE INDEX gncPriceTrail_price_idx ON gncPriceTrail (priceGuid); \n"
|
||||
"CREATE INDEX gncTransactionTrail_trans_idx ON gncTransactionTrail (transGuid); \n"
|
||||
"-- end of file";
|
||||
"-- end of file"
|
||||
|
@ -6,11 +6,11 @@ EXIT_VALUE=0
|
||||
# gdb .libs/test-db
|
||||
|
||||
rm -f test_file_*
|
||||
if ./db-control.sh create; then
|
||||
./db-control.sh start
|
||||
if ${srcdir}/db-control.sh create; then
|
||||
${srcdir}/db-control.sh start
|
||||
./test-db localhost 7777 || EXIT_VALUE=1
|
||||
./db-control.sh stop
|
||||
./db-control.sh destroy
|
||||
${srcdir}/db-control.sh stop
|
||||
${srcdir}/db-control.sh destroy
|
||||
elif [ "${PGHOST}X" != "X" ]; then
|
||||
# This expects the logged in user to have authority
|
||||
# to create databases.
|
||||
|
Loading…
Reference in New Issue
Block a user