aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1996-11-27 13:49:46 +0000
committerBruce Momjian <bruce@momjian.us>1996-11-27 13:49:46 +0000
commit6450bef6ecb27a1ebad8f92b567aaeb657cb786b (patch)
treee1819f058c9fa1bb1a931df9fc0d9ccc98e45917 /src
parentc9ec45062a3be452737adb422d969810e82df308 (diff)
downloadpostgresql-6450bef6ecb27a1ebad8f92b567aaeb657cb786b.tar.gz
postgresql-6450bef6ecb27a1ebad8f92b567aaeb657cb786b.zip
Convert ' to " in dates. Update example code to show empty query as "".
Diffstat (limited to 'src')
-rw-r--r--src/man/libpq.34
-rw-r--r--src/man/sql.l12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/man/libpq.3 b/src/man/libpq.3
index 9079ca77107..f7e28712b6e 100644
--- a/src/man/libpq.3
+++ b/src/man/libpq.3
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.2 1996/11/15 17:55:30 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.3 1996/11/27 13:49:44 momjian Exp $
.TH LIBPQ INTRO 03/12/94 Postgres95 Postgres95
.SH DESCRIPTION
Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -788,7 +788,7 @@ main()
while (1) {
/* async notification only come back as a result of a query*/
/* we can send empty queries */
- res = PQexec(conn, " ");
+ res = PQexec(conn, "");
/* printf("res->status = %s\\n", pgresStatus[PQresultStatus(res)]); */
/* check for asynchronous returns */
notify = PQnotifies(conn);
diff --git a/src/man/sql.l b/src/man/sql.l
index c2e23f38389..98d21358407 100644
--- a/src/man/sql.l
+++ b/src/man/sql.l
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.1 1996/11/14 10:18:04 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.2 1996/11/27 13:49:46 momjian Exp $
.TH INTRODUCTION SQL 11/5/95 Postgres95 Postgres95
.SH "Section 4 \(em SQL Commands (COMMANDS)"
.SH "General Information"
@@ -311,8 +311,8 @@ A
.IR "time expression"
is in one of two forms:
.nf
- ['date']
- ['date-1', 'date-2']
+ ["date"]
+ ["date-1", "date-2"]
.fi
The first case requires instances that are valid at the indicated
time. The second case requires instances that are valid at some time
@@ -321,7 +321,7 @@ the default is \*(lqnow\*(rq.
.PP
In each case, the date is a character string of the form
.nf
-[MON-FRI] 'MMM DD [HH:MM:SS] YYYY' [Timezone]
+"[MON-FRI] MMM DD [HH:MM:SS] YYYY [Timezone]"
.fi
where MMM is the month (Jan \- Dec), DD is a legal day number in the
specified month, HH:MM:SS is an optional time in that day (24-hour
@@ -333,8 +333,8 @@ local time zone.
.PP
For example,
.nf
-['Jan 1 1990']
-['Mar 3 00:00:00 1980', 'Mar 3 23:59:59 1981r']
+["Jan 1 1990"]
+["Mar 3 00:00:00 1980", "Mar 3 23:59:59 1981"]
.fi
are valid time specifications.
.PP