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

Commit20e11f2

Browse files
committed
From: Darren King <darrenk@insightdist.com>
I have always been under the impression that NULL is not equal toNULL and that NULL is not equal to anything else either. If thisis the case, then this patch is correct.If NULL _is_ equal to NULL, then I think there are other problemsin the Group By logic.
1 parentd57753e commit20e11f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/backend/executor/nodeGroup.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* columns. (ie. tuples from the same group are consecutive)
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.11 1997/10/27 12:00:43 vadim Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.12 1998/01/2600:21:02 scrappy Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -415,8 +415,11 @@ sameGroup(TupleTableSlot *oldslot,
415415

416416
if (isNull1==isNull2)
417417
{
418-
if (isNull1)/* both are null, they are equal */
419-
continue;
418+
/* both are null, they are _not_ equal since
419+
* NULL is not equal to NULL (or anything).
420+
* -- 25 Jan 1998 -- darrenk */
421+
if (isNull1)
422+
return FALSE;
420423

421424
val1=fmgr(typoutput,attr1,
422425
gettypelem(tupdesc->attrs[att-1]->atttypid));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp