]> granicus.if.org Git - postgresql/commitdiff
Fix bogus DatumGetInt32 coercion.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Jul 2000 04:17:53 +0000 (04:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Jul 2000 04:17:53 +0000 (04:17 +0000)
src/backend/executor/nodeSort.c

index 9d59858b4d53eaf5e5d47732432e163dd8837667..f8b5571a578eb1b496cb672034f80bf0f0d53edd 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.27 2000/06/15 04:09:52 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.28 2000/07/09 04:17:53 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -71,9 +71,9 @@ FormSortKeys(Sort *sortnode)
                if (reskey > 0)                 /* ignore TLEs that are not sort keys */
                {
                        ScanKeyEntryInitialize(&sortkeys[reskey - 1],
-                                                                  0,
+                                                                  0x0,
                                                                   resno,
-                                                                  (RegProcedure) DatumGetInt32(reskeyop),
+                                                                  (RegProcedure) reskeyop,
                                                                   (Datum) 0);
                }
        }