* contrib/rddsql/sqlbase.c
! fixed transfering records between two "array" SQLBASE workareas, when there
is a text/long/clob/memo field
Patch by Ilina Stoilkovska.
* contrib/hbpgsql/postgres.c
! added #include pg_config.h, '#if PG_VERSION_NUM' clauses were not working
+ plain wrappers for bulk data insert functions PQputCopyData, PQputCopyEnd
+ new function PQCOPYFROMWA which copies current workarea with CSV-like
bulk data transfer functions to PostgreSQL database, without the need
of creating temporary files - similar to __dbTrans() and __dbSql()
<lResult> := PQCOPYFROMWA( <pConn>, <cTable>, [<bWhileBlock>],
[<bForBlock>], [<aFieldNames>], [<nCount>],
[<lTrimStrings>], [<nPreBuffer>] )
<nPreBuffer> - default is 1, which turns into 1 * 1400 bytes
(to keep it below typical network MTU of 1500 bytes),
needs testing how libPQ is doing buffering by itself,
and if this is needed?
Patch by Ilina Stoilkovska. Many thanks.
* contrib/hbpgsql/hbpgsql.hbx
+ contrib/hbpgsql/rddcopy.c
+ contrib/hbpgsql/hbpgsql.h
* contrib/hbpgsql/postgres.c
* contrib/hbpgsql/hbpgsql.hbp
+ moved PQ related declarations to separate header. low-level functions made public.
% moved new PQCOPYFROMWA() to separate source to untie the main wrappers from RDD components
* HB_ prefix to PQCOPYFROMWA() name
* minor mods to above
* package/winuni/mpkg_win_uni.bat
* package/winuni/mpkg_win_uni.nsi
- deleted x64 flavor of some exes which don't give any benefit of the 64-bitness
110 lines
2.7 KiB
Plaintext
110 lines
2.7 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/* NOTE: You can add manual override which functions to include or */
|
|
/* exclude from automatically generated EXTERNAL/DYNAMIC list. */
|
|
/* Syntax: // HB_FUNC_INCLUDE <func> */
|
|
/* // HB_FUNC_EXCLUDE <func> */
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
/* WARNING: Automatically generated code below. DO NOT EDIT! */
|
|
/* Regenerate using hbmk2 '-hbx=' option. */
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
#ifndef __HBEXTERN_CH__HBPGSQL__
|
|
#define __HBEXTERN_CH__HBPGSQL__
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__ANNOUNCE )
|
|
ANNOUNCE __HBEXTERN__HBPGSQL__
|
|
#endif
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__REQUEST )
|
|
#command DYNAMIC <fncs,...> => EXTERNAL <fncs>
|
|
#endif
|
|
|
|
DYNAMIC HB_PQCOPYFROMWA
|
|
DYNAMIC HDBCPGCONNECTION
|
|
DYNAMIC HDBCPGDATABASEMETADATA
|
|
DYNAMIC HDBCPGPREPAREDSTATEMENT
|
|
DYNAMIC HDBCPGRESULTSET
|
|
DYNAMIC HDBCPGRESULTSETMETADATA
|
|
DYNAMIC HDBCPGSTATEMENT
|
|
DYNAMIC LO_EXPORT
|
|
DYNAMIC LO_IMPORT
|
|
DYNAMIC LO_UNLINK
|
|
DYNAMIC PQBINARYTUPLES
|
|
DYNAMIC PQCANCEL
|
|
DYNAMIC PQCLIENTENCODING
|
|
DYNAMIC PQCMDSTATUS
|
|
DYNAMIC PQCMDTUPLES
|
|
DYNAMIC PQCONNECTDB
|
|
DYNAMIC PQCONSUMEINPUT
|
|
DYNAMIC PQCREATETRACE
|
|
DYNAMIC PQDB
|
|
DYNAMIC PQERRORMESSAGE
|
|
DYNAMIC PQESCAPEBYTEA
|
|
DYNAMIC PQESCAPEBYTEACONN
|
|
DYNAMIC PQESCAPESTRING
|
|
DYNAMIC PQEXEC
|
|
DYNAMIC PQEXECPARAMS
|
|
DYNAMIC PQEXECPREPARED
|
|
DYNAMIC PQFCOUNT
|
|
DYNAMIC PQFLUSH
|
|
DYNAMIC PQFMOD
|
|
DYNAMIC PQFNAME
|
|
DYNAMIC PQFNUMBER
|
|
DYNAMIC PQFSIZE
|
|
DYNAMIC PQFTABLE
|
|
DYNAMIC PQFTYPE
|
|
DYNAMIC PQGETCANCEL
|
|
DYNAMIC PQGETISNULL
|
|
DYNAMIC PQGETLENGTH
|
|
DYNAMIC PQGETRESULT
|
|
DYNAMIC PQGETVALUE
|
|
DYNAMIC PQHOST
|
|
DYNAMIC PQISBUSY
|
|
DYNAMIC PQISNONBLOCKING
|
|
DYNAMIC PQLASTREC
|
|
DYNAMIC PQMETADATA
|
|
DYNAMIC PQNFIELDS
|
|
DYNAMIC PQNTUPLES
|
|
DYNAMIC PQOIDSTATUS
|
|
DYNAMIC PQOIDVALUE
|
|
DYNAMIC PQOPTIONS
|
|
DYNAMIC PQPASS
|
|
DYNAMIC PQPORT
|
|
DYNAMIC PQPREPARE
|
|
DYNAMIC PQPROTOCOLVERSION
|
|
DYNAMIC PQPUTCOPYDATA
|
|
DYNAMIC PQPUTCOPYEND
|
|
DYNAMIC PQREQUESTCANCEL
|
|
DYNAMIC PQRESET
|
|
DYNAMIC PQRESULT2ARRAY
|
|
DYNAMIC PQRESULTERRORMESSAGE
|
|
DYNAMIC PQRESULTSTATUS
|
|
DYNAMIC PQSENDQUERY
|
|
DYNAMIC PQSERVERVERSION
|
|
DYNAMIC PQSETCLIENTENCODING
|
|
DYNAMIC PQSETDBLOGIN
|
|
DYNAMIC PQSETERRORVERBOSITY
|
|
DYNAMIC PQSETNONBLOCKING
|
|
DYNAMIC PQSTATUS
|
|
DYNAMIC PQTRACE
|
|
DYNAMIC PQTRANSACTIONSTATUS
|
|
DYNAMIC PQTTY
|
|
DYNAMIC PQUNESCAPEBYTEA
|
|
DYNAMIC PQUNTRACE
|
|
DYNAMIC PQUSER
|
|
DYNAMIC TPQQUERY
|
|
DYNAMIC TPQROW
|
|
DYNAMIC TPQSERVER
|
|
|
|
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__REQUEST )
|
|
#uncommand DYNAMIC <fncs,...> => EXTERNAL <fncs>
|
|
#endif
|
|
|
|
#endif
|