PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ geography_eq()

Datum geography_eq ( PG_FUNCTION_ARGS  )

Definition at line 121 of file geography_btree.c.

References FALSE, geography_cmp(), gserialized_cmp(), PG_FUNCTION_INFO_V1(), and TRUE.

Referenced by geography_ge().

122 {
123  GSERIALIZED *g1 = PG_GETARG_GSERIALIZED_P(0);
124  GSERIALIZED *g2 = PG_GETARG_GSERIALIZED_P(1);
125  int cmp = gserialized_cmp(g1, g2);
126  PG_FREE_IF_COPY(g1, 0);
127  PG_FREE_IF_COPY(g2, 1);
128  if (cmp == 0)
129  PG_RETURN_BOOL(TRUE);
130  else
131  PG_RETURN_BOOL(FALSE);
132 }
int gserialized_cmp(const GSERIALIZED *g1, const GSERIALIZED *g2)
Return -1 if g1 is "less than" g2, 1 if g1 is "greater than" g2 and 0 if g1 and g2 are the "same"...
Definition: g_serialized.c:294
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the call graph for this function:
Here is the caller graph for this function: