Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc0a13

Browse files
committed
Document why PQtrace and ecpg debug() can crash the application if the
DLL compiles to not match the application.
1 parent d341946 commit ccc0a13

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

doc/src/sgml/ecpg.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.65 2005/07/14 06:17:35 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.66 2005/09/25 03:06:41 momjian Exp $
33
-->
44

55
<chapter id="ecpg">
@@ -1607,6 +1607,13 @@ ECPG = ecpg
16071607
useful when searching for errors in your <acronym>SQL</acronym>
16081608
statements.
16091609
</para>
1610+
<note>
1611+
<para>
1612+
On Win32, if the <application>ecpg</> libraries and application are compiled with
1613+
different flags, this function call will crash the application because the
1614+
internal representation of the <literal>FILE</> pointers differ.
1615+
</para>
1616+
</note>
16101617
</listitem>
16111618

16121619
<listitem>

doc/src/sgml/libpq.sgml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.189 2005/08/14 22:19:49 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.190 2005/09/25 03:06:41 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -3515,6 +3515,13 @@ affect the messages available from already-existing
35153515
void PQtrace(PGconn *conn, FILE *stream);
35163516
</synopsis>
35173517
</para>
3518+
<note>
3519+
<para>
3520+
On Win32, if the <application>libpq</> library and application are compiled with
3521+
different flags, this function call will crash the application because the
3522+
internal representation of the <literal>FILE</> pointers differ.
3523+
</para>
3524+
</note>
35183525
</listitem>
35193526
</varlistentry>
35203527

0 commit comments

Comments
 (0)