diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-01-05 03:35:55 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-01-05 03:35:55 +0000 |
commit | 0d9fc5afd6eda651d2ef0a4776e08f02d32a96de (patch) | |
tree | c9f5ac32c61569ba21fc66cf28d383e3972d2199 /src/backend/parser/parse_oper.c | |
parent | 0af9137f14f46a0affba6e57343a76a1e832172f (diff) | |
download | postgresql-0d9fc5afd6eda651d2ef0a4776e08f02d32a96de.tar.gz postgresql-0d9fc5afd6eda651d2ef0a4776e08f02d32a96de.zip |
Change elog(WARN) to elog(ERROR) and elog(ABORT).
Diffstat (limited to 'src/backend/parser/parse_oper.c')
-rw-r--r-- | src/backend/parser/parse_oper.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/backend/parser/parse_oper.c b/src/backend/parser/parse_oper.c index 4fbe3f1446f..ebd7d1cc718 100644 --- a/src/backend/parser/parse_oper.c +++ b/src/backend/parser/parse_oper.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.4 1998/01/01 05:44:54 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.5 1998/01/05 03:32:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -367,7 +367,7 @@ oper(char *op, Oid arg1, Oid arg2, bool noWarnings) elog(NOTICE, "there is more than one operator %s for types", op); elog(NOTICE, "%s and %s. You will have to retype this query", typeTypeName(tp1), typeTypeName(tp2)); - elog(WARN, "using an explicit cast"); + elog(ERROR, "using an explicit cast"); } return (NULL); } @@ -473,7 +473,7 @@ right_oper(char *op, Oid arg) ncandidates = unary_oper_get_candidates(op, arg, &candidates, 'r'); if (ncandidates == 0) { - elog(WARN, + elog(ERROR, "Can't find right op: %s for type %d", op, arg); return (NULL); } @@ -490,7 +490,7 @@ right_oper(char *op, Oid arg) { elog(NOTICE, "there is more than one right operator %s", op); elog(NOTICE, "you will have to retype this query"); - elog(WARN, "using an explicit cast"); + elog(ERROR, "using an explicit cast"); return (NULL); } } @@ -518,7 +518,7 @@ left_oper(char *op, Oid arg) ncandidates = unary_oper_get_candidates(op, arg, &candidates, 'l'); if (ncandidates == 0) { - elog(WARN, + elog(ERROR, "Can't find left op: %s for type %d", op, arg); return (NULL); } @@ -535,7 +535,7 @@ left_oper(char *op, Oid arg) { elog(NOTICE, "there is more than one left operator %s", op); elog(NOTICE, "you will have to retype this query"); - elog(WARN, "using an explicit cast"); + elog(ERROR, "using an explicit cast"); return (NULL); } } @@ -575,7 +575,7 @@ op_error(char *op, Oid arg1, Oid arg2) } else { - elog(WARN, "left hand side of operator %s has an unknown type, probably a bad attribute name", op); + elog(ERROR, "left hand side of operator %s has an unknown type, probably a bad attribute name", op); } if (typeidIsValid(arg2)) @@ -584,7 +584,7 @@ op_error(char *op, Oid arg1, Oid arg2) } else { - elog(WARN, "right hand side of operator %s has an unknown type, probably a bad attribute name", op); + elog(ERROR, "right hand side of operator %s has an unknown type, probably a bad attribute name", op); } #if FALSE @@ -592,10 +592,10 @@ op_error(char *op, Oid arg1, Oid arg2) op, typeTypeName(tp1), typeTypeName(tp2)); elog(NOTICE, "You will either have to retype this query using an"); elog(NOTICE, "explicit cast, or you will have to define the operator"); - elog(WARN, "%s for %s and %s using CREATE OPERATOR", + elog(ERROR, "%s for %s and %s using CREATE OPERATOR", op, typeTypeName(tp1), typeTypeName(tp2)); #endif - elog(WARN, "There is no operator '%s' for types '%s' and '%s'" + elog(ERROR, "There is no operator '%s' for types '%s' and '%s'" "\n\tYou will either have to retype this query using an explicit cast," "\n\tor you will have to define the operator using CREATE OPERATOR", op, typeTypeName(tp1), typeTypeName(tp2)); |