Datum gbt_bytea_same(PG_FUNCTION_ARGS) { Datum d1 = PG_GETARG_DATUM(0); Datum d2 = PG_GETARG_DATUM(1); bool *result = (bool *) PG_GETARG_POINTER(2); PG_RETURN_POINTER(gbt_var_same(result, d1, d2, &tinfo)); }
Datum gbt_bit_same(PG_FUNCTION_ARGS) { Datum d1 = PG_GETARG_DATUM(0); Datum d2 = PG_GETARG_DATUM(1); bool *result = (bool *) PG_GETARG_POINTER(2); *result = gbt_var_same(d1, d2, PG_GET_COLLATION(), &tinfo); PG_RETURN_POINTER(result); }
Datum gbt_bytea_same(MDB_FUNCTION_ARGS) { Datum d1 = MDB_GETARG_DATUM(0); Datum d2 = MDB_GETARG_DATUM(1); bool *result = (bool *) MDB_GETARG_POINTER(2); *result = gbt_var_same(d1, d2, MDB_GET_COLLATION(), &tinfo); MDB_RETURN_POINTER(result); }