Skip to content

Commit 0f8a313

Browse files
committed
Remove no-longer-relevant note about forcing the type of an integer
constant. Per Kris Jurka.
1 parent 18f7a8e commit 0f8a313

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.139 2003/12/21 04:34:35 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.140 2004/01/20 22:46:06 tgl Exp $
33
-->
44

55
<chapter id="datatype">
@@ -437,28 +437,6 @@ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.139 2003/12/21 04:34:35 momjia
437437
other <acronym>SQL</acronym> database systems.
438438
</para>
439439

440-
<note>
441-
<para>
442-
If you have a column of type <type>smallint</type> or
443-
<type>bigint</type> with an index, you may encounter problems
444-
getting the system to use that index. For instance, a clause of
445-
the form
446-
<programlisting>
447-
... WHERE smallint_column = 42
448-
</programlisting>
449-
will not use an index, because the system assigns type
450-
<type>integer</type> to the constant 42, and
451-
<productname>PostgreSQL</productname> currently
452-
cannot use an index when two different data types are involved. A
453-
workaround is to single-quote the constant, thus:
454-
<programlisting>
455-
... WHERE smallint_column = '42'
456-
</programlisting>
457-
This will cause the system to delay type resolution and will
458-
assign the right type to the constant.
459-
</para>
460-
</note>
461-
462440
</sect2>
463441

464442
<sect2 id="datatype-numeric-decimal">

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