Fix type mismatch

This commit is contained in:
Peter Eisentraut 2015-03-13 01:01:10 -04:00
parent ab41eb4c6d
commit 1961ca44d3
1 changed files with 14 additions and 14 deletions

28
uri.c
View File

@ -298,8 +298,8 @@ PG_FUNCTION_INFO_V1(uri_lt);
Datum Datum
uri_lt(PG_FUNCTION_ARGS) uri_lt(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) < 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) < 0);
} }
@ -308,8 +308,8 @@ PG_FUNCTION_INFO_V1(uri_le);
Datum Datum
uri_le(PG_FUNCTION_ARGS) uri_le(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) <= 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) <= 0);
} }
@ -318,8 +318,8 @@ PG_FUNCTION_INFO_V1(uri_eq);
Datum Datum
uri_eq(PG_FUNCTION_ARGS) uri_eq(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) == 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) == 0);
} }
@ -328,8 +328,8 @@ PG_FUNCTION_INFO_V1(uri_ne);
Datum Datum
uri_ne(PG_FUNCTION_ARGS) uri_ne(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) != 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) != 0);
} }
@ -338,8 +338,8 @@ PG_FUNCTION_INFO_V1(uri_ge);
Datum Datum
uri_ge(PG_FUNCTION_ARGS) uri_ge(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) >= 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) >= 0);
} }
@ -348,8 +348,8 @@ PG_FUNCTION_INFO_V1(uri_gt);
Datum Datum
uri_gt(PG_FUNCTION_ARGS) uri_gt(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_BOOL(_uri_cmp(arg1, arg2) > 0); PG_RETURN_BOOL(_uri_cmp(arg1, arg2) > 0);
} }
@ -358,8 +358,8 @@ PG_FUNCTION_INFO_V1(uri_cmp);
Datum Datum
uri_cmp(PG_FUNCTION_ARGS) uri_cmp(PG_FUNCTION_ARGS)
{ {
Datum *arg1 = PG_GETARG_DATUM(0); Datum arg1 = PG_GETARG_DATUM(0);
Datum *arg2 = PG_GETARG_DATUM(1); Datum arg2 = PG_GETARG_DATUM(1);
PG_RETURN_INT32(_uri_cmp(arg1, arg2)); PG_RETURN_INT32(_uri_cmp(arg1, arg2));
} }