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

Commitb673837

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 parente7c02a5 commitb673837

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
@@ -8015,13 +8015,16 @@ testlibpq.o(.text+0xa4): undefined reference to `PQerrorMessage'
80158015
<programlisting>
80168016
<![CDATA[
80178017
/*
8018+
* src/test/examples/testlibpq.c
8019+
*
8020+
*
80188021
* testlibpq.c
80198022
*
80208023
* Test the C version of libpq, the PostgreSQL frontend library.
80218024
*/
80228025
#include <stdio.h>
80238026
#include <stdlib.h>
8024-
#include<libpq-fe.h>
8027+
#include"libpq-fe.h"
80258028

80268029
static void
80278030
exit_nicely(PGconn *conn)
@@ -8142,6 +8145,9 @@ main(int argc, char **argv)
81428145
<programlisting>
81438146
<![CDATA[
81448147
/*
8148+
* src/test/examples/testlibpq2.c
8149+
*
8150+
*
81458151
* testlibpq2.c
81468152
* Test of the asynchronous notification interface
81478153
*
@@ -8174,6 +8180,10 @@ main(int argc, char **argv)
81748180
#include <errno.h>
81758181
#include <sys/time.h>
81768182
#include <sys/types.h>
8183+
#ifdef HAVE_SYS_SELECT_H
8184+
#include <sys/select.h>
8185+
#endif
8186+
81778187
#include "libpq-fe.h"
81788188

81798189
static void
@@ -8285,6 +8295,9 @@ main(int argc, char **argv)
82858295
<programlisting>
82868296
<![CDATA[
82878297
/*
8298+
* src/test/examples/testlibpq3.c
8299+
*
8300+
*
82888301
* testlibpq3.c
82898302
* Test out-of-line parameters and binary I/O.
82908303
*

‎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