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

Commite36f96e

Browse files
committed
More updates for typmod int32 change. From Tom Lane.
1 parent3600fd3 commite36f96e

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ short PQfsize(PGresult *res,
442442
associated with the given field index.
443443
Field indices start at 0.
444444
<ProgramListing>
445-
short PQfmod(PGresult *res,
446-
int field_index);
445+
int PQfmod(PGresult *res,
446+
int field_index);
447447
</ProgramListing>
448448
</Para>
449449
</ListItem>

‎doc/src/sgml/protocol.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<FirstName>Phil</FirstName>
55
<Surname>Thompson</Surname>
66
</Author>
7-
<Date>1998-07-07</Date>
7+
<Date>1998-07-13</Date>
88
</DocInfo>
99
<Title>Frontend/Backend Protocol</Title>
1010

@@ -25,7 +25,10 @@ a way as to still allow connections from earlier versions of frontends, but
2525
this document does not cover the protocol used by those earlier versions.
2626

2727
<Para>
28-
This document describes version 2.0 of the protocol.
28+
This document describes version 2.0 of the protocol, implemented in
29+
<ProductName>Postgres</ProductName> v6.4 and later.
30+
31+
<Para>
2932
Higher level features built on this protocol (for example, how <FileName>libpq</FileName> passes
3033
certain environment variables after the connection is established)
3134
are covered elsewhere.
@@ -1688,7 +1691,7 @@ RowDescription (B)
16881691
</VarListEntry>
16891692
<VarListEntry>
16901693
<Term>
1691-
Int16
1694+
Int32
16921695
</Term>
16931696
<ListItem>
16941697
<Para>

‎src/interfaces/libpq/fe-exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.59 1998/07/13 16:35:00 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.60 1998/07/14 02:41:25 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1299,7 +1299,7 @@ PQfsize(PGresult *res, int field_num)
12991299
return0;
13001300
}
13011301

1302-
short
1302+
int
13031303
PQfmod(PGresult*res,intfield_num)
13041304
{
13051305
if (!res)

‎src/interfaces/libpq/libpq-fe.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: libpq-fe.h,v 1.34 1998/07/13 16:35:02 momjian Exp $
9+
* $Id: libpq-fe.h,v 1.35 1998/07/14 02:41:25 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -77,7 +77,7 @@ extern"C"
7777
{
7878
char*name;/* type name */
7979
Oidtypid;/* type id */
80-
shorttyplen;/* type size */
80+
shorttyplen;/* type size */
8181
intatttypmod;/* type-specific modifier info */
8282
}PGresAttDesc;
8383

@@ -332,7 +332,7 @@ extern"C"
332332
externintPQfnumber(PGresult*res,constchar*field_name);
333333
externOidPQftype(PGresult*res,intfield_num);
334334
externshortPQfsize(PGresult*res,intfield_num);
335-
externshortPQfmod(PGresult*res,intfield_num);
335+
externintPQfmod(PGresult*res,intfield_num);
336336
externchar*PQcmdStatus(PGresult*res);
337337
externconstchar*PQoidStatus(PGresult*res);
338338
externconstchar*PQcmdTuples(PGresult*res);

‎src/man/libpq.3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.19 1998/07/09 03:30:49 scrappy Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.20 1998/07/14 02:41:26 momjian Exp $
44
.TH LIBPQ INTRO 07/08/98 PostgreSQL PostgreSQL
55
.SH DESCRIPTION
66
Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -309,8 +309,8 @@ returns the type-specific modification data of the field
309309
associated with the given field index.
310310
Field indices start at 0.
311311
.nf
312-
short PQfmod(PGresult *res,
313-
int field_index);
312+
int PQfmod(PGresult *res,
313+
int field_index);
314314
.fi
315315

316316
.BPQgetvalue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp