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

Commitc10908e

Browse files
committed
Symptom:
select from a table with attrs (a int, b char(20)) crashed in bpcharout() (palloc of -1 bytes). But a table with attrs (a int, b varchar(20)) worked.From: Jan Wieck <jwieck@debis.com>
1 parent692cfec commitc10908e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/access/common/heaptuple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.33 1998/02/0503:47:08 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.34 1998/02/0515:08:49 scrappy Exp $
1212
*
1313
* NOTES
1414
* The old interface functions have been converted to macros
@@ -554,7 +554,7 @@ nocachegetattr(HeapTuple tup,
554554
while (att[j]->attcacheoff>0)
555555
j++;
556556

557-
if (!VARLENA_FIXED_SIZE(att[j]))
557+
if (!VARLENA_FIXED_SIZE(att[j-1]))
558558
off=att[j-1]->attcacheoff+att[j-1]->attlen;
559559
else
560560
off=att[j-1]->attcacheoff+att[j-1]->atttypmod;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp