diff options
| author | Neil Conway <neilc@samurai.com> | 2005-07-14 06:17:36 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2005-07-14 06:17:36 +0000 |
| commit | c3f1b0f4dd1a6f0c282e7bf9fe717ce4c1591bf3 (patch) | |
| tree | 534c408946021ef9a610d7ac475d180a45d77415 /doc/src/sgml/ref | |
| parent | 29094193f526bf90671d71b59a2e007aad1fcae5 (diff) | |
This doc patch replaces all inappropriate references to SQL:1999 when it
is used as if it were the latest (and/or still valid) SQL standard.
SQL:2003 is used in its place. Patch from Simon Riggs.
Diffstat (limited to 'doc/src/sgml/ref')
| -rw-r--r-- | doc/src/sgml/ref/alter_domain.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/ref/create_cast.sgml | 6 | ||||
| -rw-r--r-- | doc/src/sgml/ref/create_function.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/ref/create_table.sgml | 8 | ||||
| -rw-r--r-- | doc/src/sgml/ref/create_trigger.sgml | 13 | ||||
| -rw-r--r-- | doc/src/sgml/ref/create_type.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/ref/select.sgml | 12 |
7 files changed, 25 insertions, 26 deletions
diff --git a/doc/src/sgml/ref/alter_domain.sgml b/doc/src/sgml/ref/alter_domain.sgml index 66344e33a82..deb4050174c 100644 --- a/doc/src/sgml/ref/alter_domain.sgml +++ b/doc/src/sgml/ref/alter_domain.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.15 2005/05/31 14:48:47 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.16 2005/07/14 06:17:36 neilc Exp $ PostgreSQL documentation --> @@ -203,7 +203,7 @@ ALTER DOMAIN zipcode DROP CONSTRAINT zipchk; <title>Compatibility</title> <para> - The <command>ALTER DOMAIN</command> statement is compatible with SQL:1999, + The <command>ALTER DOMAIN</command> statement is compatible with SQL:2003, except for the <literal>OWNER</> variant, which is a <productname>PostgreSQL</productname> extension. </para> diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index a6461a65253..6adde5e0abb 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/create_cast.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.20 2004/12/13 18:05:10 petere Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.21 2005/07/14 06:17:36 neilc Exp $ --> <refentry id="SQL-CREATECAST"> <refmeta> @@ -298,8 +298,8 @@ CREATE CAST (text AS int4) WITH FUNCTION int4(text); <title>Compatibility</title> <para> - The <command>CREATE CAST</command> command conforms to SQL:1999, - except that SQL:1999 does not make provisions for binary-compatible + The <command>CREATE CAST</command> command conforms to SQL:2003, + except that SQL:2003 does not make provisions for binary-compatible types or extra arguments to implementation functions. <literal>AS IMPLICIT</> is a <productname>PostgreSQL</productname> extension, too. diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 768a42846b6..785f8bbb708 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.65 2005/03/31 22:45:59 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.66 2005/07/14 06:17:36 neilc Exp $ --> <refentry id="SQL-CREATEFUNCTION"> @@ -478,7 +478,7 @@ SELECT * FROM dup(42); <title>Compatibility</title> <para> - A <command>CREATE FUNCTION</command> command is defined in SQL:1999 and later. + A <command>CREATE FUNCTION</command> command is defined in SQL:2003. The <productname>PostgreSQL</productname> version is similar but not fully compatible. The attributes are not portable, neither are the different available languages. diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 191f29ccd4d..71972b470ba 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.92 2005/02/02 06:35:59 neilc Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.93 2005/07/14 06:17:36 neilc Exp $ PostgreSQL documentation --> @@ -860,7 +860,7 @@ CREATE TABLE cinemas ( <para> The <command>CREATE TABLE</command> command conforms to SQL-92 and - to a subset of SQL:1999, with exceptions listed below. + to a subset of SQL:2003, with exceptions listed below. </para> <refsect2> @@ -938,8 +938,8 @@ CREATE TABLE cinemas ( <para> Multiple inheritance via the <literal>INHERITS</literal> clause is a <productname>PostgreSQL</productname> language extension. - SQL:1999 (but not SQL-92) defines single inheritance using a - different syntax and different semantics. SQL:1999-style + SQL:2003 defines single inheritance using a + different syntax and different semantics. SQL:2003-style inheritance is not yet supported by <productname>PostgreSQL</productname>. </para> diff --git a/doc/src/sgml/ref/create_trigger.sgml b/doc/src/sgml/ref/create_trigger.sgml index f712636f49e..83a8edb9ed4 100644 --- a/doc/src/sgml/ref/create_trigger.sgml +++ b/doc/src/sgml/ref/create_trigger.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.40 2004/11/27 21:27:07 petere Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.41 2005/07/14 06:17:36 neilc Exp $ PostgreSQL documentation --> @@ -208,20 +208,19 @@ CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTE <para> The <command>CREATE TRIGGER</command> statement in <productname>PostgreSQL</productname> implements a subset of the - SQL:1999 standard. (There are no provisions for triggers in SQL-92.) - The following functionality is missing: + SQL:2003 standard. The following functionality is currently missing: <itemizedlist> <listitem> <para> - SQL:1999 allows triggers to fire on updates to specific columns + SQL:2003 allows triggers to fire on updates to specific columns (e.g., <literal>AFTER UPDATE OF col1, col2</literal>). </para> </listitem> <listitem> <para> - SQL:1999 allows you to define aliases for the <quote>old</quote> + SQL:2003 allows you to define aliases for the <quote>old</quote> and <quote>new</quote> rows or tables for use in the definition of the triggered action (e.g., <literal>CREATE TRIGGER ... ON tablename REFERENCING OLD ROW AS somename NEW ROW AS othername @@ -235,7 +234,7 @@ CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTE <listitem> <para> <productname>PostgreSQL</productname> only allows the execution - of a user-defined function for the triggered action. SQL:1999 + of a user-defined function for the triggered action. SQL:2003 allows the execution of a number of other SQL commands, such as <command>CREATE TABLE</command> as triggered action. This limitation is not hard to work around by creating a user-defined @@ -246,7 +245,7 @@ CREATE TRIGGER <replaceable class="PARAMETER">name</replaceable> { BEFORE | AFTE </para> <para> - SQL:1999 specifies that multiple triggers should be fired in + SQL:2003 specifies that multiple triggers should be fired in time-of-creation order. <productname>PostgreSQL</productname> uses name order, which was judged more convenient to work with. </para> diff --git a/doc/src/sgml/ref/create_type.sgml b/doc/src/sgml/ref/create_type.sgml index 4f002b65194..4d05fa98cd1 100644 --- a/doc/src/sgml/ref/create_type.sgml +++ b/doc/src/sgml/ref/create_type.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/create_type.sgml,v 1.56 2005/07/10 21:13:57 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/create_type.sgml,v 1.57 2005/07/14 06:17:36 neilc Exp $ PostgreSQL documentation --> @@ -533,7 +533,7 @@ CREATE TABLE big_objs ( <para> This <command>CREATE TYPE</command> command is a <productname>PostgreSQL</productname> extension. There is a - <command>CREATE TYPE</command> statement in SQL:1999 and later that is rather + <command>CREATE TYPE</command> statement in SQL:2003 that is rather different in detail. </para> </refsect1> diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml index 75765a0dab8..d29f8e48e0e 100644 --- a/doc/src/sgml/ref/select.sgml +++ b/doc/src/sgml/ref/select.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.87 2005/05/08 03:08:05 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.88 2005/07/14 06:17:36 neilc Exp $ PostgreSQL documentation --> @@ -1082,7 +1082,7 @@ SELECT distributors.* WHERE distributors.name = 'Westward'; <title>Namespace Available to <literal>GROUP BY</literal> and <literal>ORDER BY</literal></title> <para> - In the SQL-92 standard, an <literal>ORDER BY</literal> clause may + In the SQL:2003 standard, an <literal>ORDER BY</literal> clause may only use result column names or numbers, while a <literal>GROUP BY</literal> clause may only use expressions based on input column names. <productname>PostgreSQL</productname> extends each of @@ -1095,11 +1095,11 @@ SELECT distributors.* WHERE distributors.name = 'Westward'; </para> <para> - SQL:1999 uses a slightly different definition which is not entirely upward - compatible - with SQL-92. In most cases, however, <productname>PostgreSQL</productname> + SQL:2003 uses a slightly different definition which is not entirely upward + compatible with SQL-92. + In most cases, however, <productname>PostgreSQL</productname> will interpret an <literal>ORDER BY</literal> or <literal>GROUP - BY</literal> expression the same way SQL:1999 does. + BY</literal> expression the same way SQL:2003 does. </para> </refsect2> |
