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

Commit9a26419

Browse files
committed
Doc: explain that the string types can't store \0 (ASCII NUL).
This restriction was mentioned in connection with string literals,but it wasn't made clear that it's a general restriction not justa syntactic limitation in query strings.Per unsigned documentation comment.Discussion:https://postgr.es/m/160720552914.710.16625261471128631268@wrigleys.postgresql.org
1 parente2ac3fe commit9a26419

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,14 @@ SELECT '52093.89'::money::numeric::float8;
12091209
regular expressions.
12101210
</para>
12111211

1212+
<para>
1213+
The characters that can be stored in any of these data types are
1214+
determined by the database character set, which is selected when
1215+
the database is created. Regardless of the specific character set,
1216+
the character with code zero (sometimes called NUL) cannot be stored.
1217+
For more information refer to <xref linkend="multibyte"/>.
1218+
</para>
1219+
12121220
<para>
12131221
The storage requirement for a short string (up to 126 bytes) is 1 byte
12141222
plus the actual string, which includes the space padding in the case of
@@ -1246,10 +1254,7 @@ SELECT '52093.89'::money::numeric::float8;
12461254
<para>
12471255
Refer to <xref linkend="sql-syntax-strings"/> for information about
12481256
the syntax of string literals, and to <xref linkend="functions"/>
1249-
for information about available operators and functions. The
1250-
database character set determines the character set used to store
1251-
textual values; for more information on character set support,
1252-
refer to <xref linkend="multibyte"/>.
1257+
for information about available operators and functions.
12531258
</para>
12541259

12551260
<example>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp