mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Andreas Bogk's postgres backend patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6792 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7211beddb4
commit
50f9eb4b4c
1
AUTHORS
1
AUTHORS
@ -84,6 +84,7 @@ Andrew Arensburger <arensb@cfar.umd.edu> for FreeBSD & other patches
|
||||
Matt Armstrong <matt_armstrong@bigfoot.com> for misc fixes
|
||||
Fred Baube <fred@moremagic.com> for attempted Java port/MoneyDance
|
||||
Dennis Björklund <dennisb@cs.chalmers.se> Swedish translation
|
||||
Andreas Bogk <andreas@andreas.org> Postgres backend patch
|
||||
Per Bojsen <bojsen@worldnet.att.net> several core dump fixes
|
||||
Terry Boldt <tboldt@attglobal.net> financial calculator and expression parser
|
||||
Richard Braakman <dark@xs4all.nl> xml version configure patch
|
||||
|
@ -233,6 +233,14 @@ linkend="scheme"> Scheme </link>, the <link linkend="gwrap"> g-wrap
|
||||
</glossdef>
|
||||
</glossentry>
|
||||
|
||||
<glossentry>
|
||||
<glossterm><email>andreas@andreas.org</email> Andreas
|
||||
Bogk</glossterm>
|
||||
<glossdef>
|
||||
<para>Postgres backend patch</para>
|
||||
</glossdef>
|
||||
</glossentry>
|
||||
|
||||
<glossentry>
|
||||
<glossterm><email>bojsen@worldnet.att.net</email> Per
|
||||
Bojsen</glossterm>
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <langinfo.h>
|
||||
|
||||
#include <libpq-fe.h>
|
||||
|
||||
@ -1929,7 +1930,9 @@ pgend_session_begin (Backend *backend,
|
||||
p = be->buff; *p =0;
|
||||
p = stpcpy (p, "CREATE DATABASE ");
|
||||
p = stpcpy (p, be->dbName);
|
||||
p = stpcpy (p, ";");
|
||||
p = stpcpy (p, " WITH ENCODING = '");
|
||||
p = stpcpy (p, nl_langinfo(CODESET));
|
||||
p = stpcpy (p, "';");
|
||||
SEND_QUERY (be,be->buff, );
|
||||
FINISH_QUERY(be->connection);
|
||||
PQfinish (be->connection);
|
||||
|
Loading…
Reference in New Issue
Block a user