Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit14bd9bc

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

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
CREATETABLETBL2 (i int4);
44

55
CREATERULEr1ASON INSERT TO TBL1 DO
6-
(INSERT INTO TBL2VALUES (new.i); NOTIFY TBL2);
6+
(INSERT INTO TBL2VALUES (new.i); NOTIFY TBL2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp