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

Commitfe35cea

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 parent9afd513 commitfe35cea

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
@@ -8256,13 +8256,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
82568256
<programlisting>
82578257
<![CDATA[
82588258
/*
8259+
* src/test/examples/testlibpq.c
8260+
*
8261+
*
82598262
* testlibpq.c
82608263
*
82618264
* Test the C version of libpq, the PostgreSQL frontend library.
82628265
*/
82638266
#include <stdio.h>
82648267
#include <stdlib.h>
8265-
#include<libpq-fe.h>
8268+
#include"libpq-fe.h"
82668269

82678270
static void
82688271
exit_nicely(PGconn *conn)
@@ -8383,6 +8386,9 @@ main(int argc, char **argv)
83838386
<programlisting>
83848387
<![CDATA[
83858388
/*
8389+
* src/test/examples/testlibpq2.c
8390+
*
8391+
*
83868392
* testlibpq2.c
83878393
* Test of the asynchronous notification interface
83888394
*
@@ -8415,6 +8421,10 @@ main(int argc, char **argv)
84158421
#include <errno.h>
84168422
#include <sys/time.h>
84178423
#include <sys/types.h>
8424+
#ifdef HAVE_SYS_SELECT_H
8425+
#include <sys/select.h>
8426+
#endif
8427+
84188428
#include "libpq-fe.h"
84198429

84208430
static void
@@ -8526,6 +8536,9 @@ main(int argc, char **argv)
85268536
<programlisting>
85278537
<![CDATA[
85288538
/*
8539+
* src/test/examples/testlibpq3.c
8540+
*
8541+
*
85298542
* testlibpq3.c
85308543
* Test out-of-line parameters and binary I/O.
85318544
*

‎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