Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 14bd9bc

Browse files
committed
Synchronize doc/ copies of src/test/examples/.
This is mostly cosmetic, but it might fix build failures, on some platform, when copying from the documentation. Back-patch to 9.3 (all supported versions).
1 parent c458970 commit 14bd9bc

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8230,13 +8230,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
82308230
<programlisting>
82318231
<![CDATA[
82328232
/*
8233+
* src/test/examples/testlibpq.c
8234+
*
8235+
*
82338236
* testlibpq.c
82348237
*
82358238
* Test the C version of libpq, the PostgreSQL frontend library.
82368239
*/
82378240
#include <stdio.h>
82388241
#include <stdlib.h>
8239-
#include <libpq-fe.h>
8242+
#include "libpq-fe.h"
82408243

82418244
static void
82428245
exit_nicely(PGconn *conn)
@@ -8357,6 +8360,9 @@ main(int argc, char **argv)
83578360
<programlisting>
83588361
<![CDATA[
83598362
/*
8363+
* src/test/examples/testlibpq2.c
8364+
*
8365+
*
83608366
* testlibpq2.c
83618367
* Test of the asynchronous notification interface
83628368
*
@@ -8389,6 +8395,10 @@ main(int argc, char **argv)
83898395
#include <errno.h>
83908396
#include <sys/time.h>
83918397
#include <sys/types.h>
8398+
#ifdef HAVE_SYS_SELECT_H
8399+
#include <sys/select.h>
8400+
#endif
8401+
83928402
#include "libpq-fe.h"
83938403

83948404
static void
@@ -8500,6 +8510,9 @@ main(int argc, char **argv)
85008510
<programlisting>
85018511
<![CDATA[
85028512
/*
8513+
* src/test/examples/testlibpq3.c
8514+
*
8515+
*
85038516
* testlibpq3.c
85048517
* Test out-of-line parameters and binary I/O.
85058518
*

src/test/examples/testlibpq2.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ CREATE TABLE TBL1 (i int4);
33
CREATE TABLE TBL2 (i int4);
44

55
CREATE RULE r1 AS ON INSERT TO TBL1 DO
6-
(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2);
6+
(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2);

0 commit comments

Comments
 (0)