Changeset 39
- Timestamp:
- 09/25/07 04:17:21 (5 years ago)
- Location:
- hw/hw2/postgresql-8.2.4/src
- Files:
-
- 2 modified
-
backend/access/gist/gistproc.c (modified) (1 diff)
-
include/utils/geo_decls.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hw/hw2/postgresql-8.2.4/src/backend/access/gist/gistproc.c
r34 r39 128 128 PG_RETURN_FLOAT8(d); 129 129 } 130 d = box_mindist_internal(DatumGetBoxP(entry->key), query); 130 /* 131 * if entry is not leaf, use box_mindist_internal, else use 132 * box_distance_internal 133 */ 134 if (GIST_LEAF(entry)) 135 d = box_distance_internal(DatumGetBoxP(entry->key), query); 136 else 137 d = box_mindist_internal(DatumGetBoxP(entry->key), query); 131 138 PG_RETURN_FLOAT8(d); 132 139 } -
hw/hw2/postgresql-8.2.4/src/include/utils/geo_decls.h
r34 r39 311 311 extern Datum box_div(PG_FUNCTION_ARGS); 312 312 extern Datum box_mindistance(PG_FUNCTION_ARGS); 313 extern double box_distance_internal(BOX *box1, BOX *box2); 313 314 extern double box_mindist_internal(BOX *box1, BOX *box2); 314 315 extern Datum box_true(PG_FUNCTION_ARGS);
