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

Commit3f2b1db

Browse files
committed
Fix thinko in encoding check for chr()
1 parent5335fab commit3f2b1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/oracle_compat.c

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/backend/utils/adt/oracle_compat.c,v 1.75 2007/11/24 21:16:55 tgl Exp $
12+
*$PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.76 2007/12/18 18:01:48 adunstan Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -1423,7 +1423,7 @@ chr(PG_FUNCTION_ARGS)
14231423

14241424
is_mb=pg_encoding_max_length(encoding)>1;
14251425

1426-
if ((is_mb&& (cvalue>255))|| (!is_mb&& (cvalue>127)))
1426+
if ((is_mb&& (cvalue>127))|| (!is_mb&& (cvalue>255)))
14271427
ereport(ERROR,
14281428
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
14291429
errmsg("requested character too large for encoding: %d",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp