1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Remove arithmetic operators on the 1-byte-char datatype, as per proposals

made several times in the past.  Add coercion functions between "char"
and integer so that a workaround is possible if needed.

Initdb forced.
This commit is contained in:
Tom Lane
2004-10-04 22:49:59 +00:00
parent 1ab415596d
commit 6c61af6654
7 changed files with 57 additions and 54 deletions

View File

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.299 2004/10/04 14:42:46 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.300 2004/10/04 22:49:47 tgl Exp $
-->
<appendix id="release">
@ -263,6 +263,13 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.299 2004/10/04 14:42:46 tgl Exp
</para>
</listitem>
<listitem>
<para>
The arithmetic operators associated with the <quote>char</> data type
have been removed.
</para>
</listitem>
<listitem>
<para>
The server now warns of empty strings passed to
@ -1241,6 +1248,19 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.299 2004/10/04 14:42:46 tgl Exp
</para>
</listitem>
<listitem>
<para>
The arithmetic operators associated with the <quote>char</> data type
have been removed.
</para>
<para>
Formerly, the parser would select these operators in many situations
where an <quote>unable to select an operator</> error would be more
appropriate, such as <literal>null * null</>. If you actually want
to do arithmetic on a <quote>char</> column, you can cast it to integer.
</para>
</listitem>
<listitem>
<para>
Syntax checking of array input values considerably tightened up (Joe)