Skip to content

Commit 23d830b

Browse files
committed
Alter some gratuitous uses of "ANSI" when "SQL standard" might have been
meant or the reference to a standard was unnecessary.
1 parent c95db34 commit 23d830b

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

doc/src/sgml/ecpg.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.89 2009/05/18 11:08:24 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.90 2009/07/11 21:15:32 petere Exp $ -->
22

33
<chapter id="ecpg">
44
<title><application>ECPG</application> - Embedded <acronym>SQL</acronym> in C</title>
@@ -3062,7 +3062,7 @@ void dtcurrent(timestamp *ts);
30623062
<term><function>dtcvasc</></term>
30633063
<listitem>
30643064
<para>
3065-
Parses a timestamp from its textual representation in ANSI standard
3065+
Parses a timestamp from its textual representation
30663066
into a timestamp variable.
30673067
<synopsis>
30683068
int dtcvasc(char *str, timestamp *ts);
@@ -3087,7 +3087,7 @@ int dtcvasc(char *str, timestamp *ts);
30873087
<term><function>dtcvfmtasc</></term>
30883088
<listitem>
30893089
<para>
3090-
Parses a timestamp from its textual representation in ANSI standard
3090+
Parses a timestamp from its textual representation
30913091
using a format mask into a timestamp variable.
30923092
<synopsis>
30933093
dtcvfmtasc(char *inbuf, char *fmtstr, timestamp *dtvalue)
@@ -3140,7 +3140,7 @@ int dttoasc(timestamp *ts, char *output);
31403140
The function receives a pointer to the timestamp variable to convert
31413141
(<literal>ts</>) and the string that should hold the result of the
31423142
operation <literal>output</>). It converts <literal>ts</> to its
3143-
textual representation in the ANSI SQL standard which is defined to
3143+
textual representation according to the SQL standard, which is
31443144
be <literal>YYYY-MM-DD HH:MM:SS</literal>.
31453145
</para>
31463146
<para>
@@ -3187,7 +3187,7 @@ int intoasc(interval *i, char *str);
31873187
The function receives a pointer to the interval variable to convert
31883188
(<literal>i</>) and the string that should hold the result of the
31893189
operation <literal>str</>). It converts <literal>i</> to its
3190-
textual representation in the ANSI SQL standard which is defined to
3190+
textual representation according to the SQL standard, which is
31913191
be <literal>YYYY-MM-DD HH:MM:SS</literal>.
31923192
</para>
31933193
<para>

src/backend/utils/adt/varchar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/varchar.c,v 1.131 2009/06/11 14:49:04 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/varchar.c,v 1.132 2009/07/11 21:15:32 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -78,7 +78,7 @@ anychar_typmodout(int32 typmod)
7878

7979

8080
/*
81-
* CHAR() and VARCHAR() types are part of the ANSI SQL standard. CHAR()
81+
* CHAR() and VARCHAR() types are part of the SQL standard. CHAR()
8282
* is for blank-padded string whose length is specified in CREATE TABLE.
8383
* VARCHAR is for storing string whose length is at most the length specified
8484
* at CREATE TABLE time.

src/include/catalog/pg_type.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.206 2009/06/18 10:22:09 petere Exp $
11+
* $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.207 2009/07/11 21:15:32 petere Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -473,10 +473,10 @@ DESCR("varchar(length), non-blank-padded string, variable storage length");
473473
#define VARCHAROID 1043
474474

475475
DATA(insert OID = 1082 ( date PGNSP PGUID 4 t b D f t \054 0 0 1182 date_in date_out date_recv date_send - - - i p f 0 -1 0 _null_ _null_ ));
476-
DESCR("ANSI SQL date");
476+
DESCR("date");
477477
#define DATEOID 1082
478478
DATA(insert OID = 1083 ( time PGNSP PGUID 8 FLOAT8PASSBYVAL b D f t \054 0 0 1183 time_in time_out time_recv time_send timetypmodin timetypmodout - d p f 0 -1 0 _null_ _null_ ));
479-
DESCR("hh:mm:ss, ANSI SQL time");
479+
DESCR("time of day");
480480
#define TIMEOID 1083
481481

482482
/* OIDS 1100 - 1199 */
@@ -498,7 +498,7 @@ DATA(insert OID = 1187 ( _interval PGNSP PGUID -1 f b A f t \054 0 1186 0 array
498498
/* OIDS 1200 - 1299 */
499499
DATA(insert OID = 1231 ( _numeric PGNSP PGUID -1 f b A f t \054 0 1700 0 array_in array_out array_recv array_send numerictypmodin numerictypmodout - i x f 0 -1 0 _null_ _null_ ));
500500
DATA(insert OID = 1266 ( timetz PGNSP PGUID 12 f b D f t \054 0 0 1270 timetz_in timetz_out timetz_recv timetz_send timetztypmodin timetztypmodout - d p f 0 -1 0 _null_ _null_ ));
501-
DESCR("hh:mm:ss, ANSI SQL time");
501+
DESCR("time of day with time zone");
502502
#define TIMETZOID 1266
503503
DATA(insert OID = 1270 ( _timetz PGNSP PGUID -1 f b A f t \054 0 1266 0 array_in array_out array_recv array_send timetztypmodin timetztypmodout - d x f 0 -1 0 _null_ _null_ ));
504504

src/pl/plpgsql/src/gram.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.125 2009/06/18 10:22:09 petere Exp $
12+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.126 2009/07/11 21:15:32 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -510,7 +510,7 @@ decl_cursor_arg : decl_varname decl_datatype
510510
;
511511

512512
decl_is_for : K_IS | /* Oracle */
513-
K_FOR; /* ANSI */
513+
K_FOR; /* SQL standard */
514514

515515
decl_aliasitem : any_identifier
516516
{

src/test/regress/expected/select_distinct.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ SELECT null IS DISTINCT FROM null as "no";
195195
f
196196
(1 row)
197197

198-
-- ANSI SQL 2003 form
198+
-- negated form
199199
SELECT 1 IS NOT DISTINCT FROM 2 as "no";
200200
no
201201
----

src/test/regress/sql/select_distinct.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SELECT 2 IS DISTINCT FROM 2 as "no";
5757
SELECT 2 IS DISTINCT FROM null as "yes";
5858
SELECT null IS DISTINCT FROM null as "no";
5959

60-
-- ANSI SQL 2003 form
60+
-- negated form
6161
SELECT 1 IS NOT DISTINCT FROM 2 as "no";
6262
SELECT 2 IS NOT DISTINCT FROM 2 as "yes";
6363
SELECT 2 IS NOT DISTINCT FROM null as "no";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy