aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_oper.c
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-01-01 05:44:54 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-01-01 05:44:54 +0000
commitfcabd0753ce68424971db367abc4c52845ff7dde (patch)
treea6e787352d493a63cc6b3f70b2cb8d19ea95fb46 /src/backend/parser/parse_oper.c
parentcc19151e3bec266c32d7b878309550dfa92fe869 (diff)
downloadpostgresql-fcabd0753ce68424971db367abc4c52845ff7dde.tar.gz
postgresql-fcabd0753ce68424971db367abc4c52845ff7dde.zip
Change precedence for boolean operators to match expected behavior.
Change NOTICE/NOTICE/NOTICE/WARN elog messages to a single message with a few newline/tab breaks embedded in the string. Much cleaner I hope.
Diffstat (limited to 'src/backend/parser/parse_oper.c')
-rw-r--r--src/backend/parser/parse_oper.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/parser/parse_oper.c b/src/backend/parser/parse_oper.c
index ddc97a45239..4fbe3f1446f 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.3 1997/11/26 03:42:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.4 1998/01/01 05:44:54 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -587,11 +587,17 @@ op_error(char *op, Oid arg1, Oid arg2)
elog(WARN, "right hand side of operator %s has an unknown type, probably a bad attribute name", op);
}
+#if FALSE
elog(NOTICE, "there is no operator %s for types %s and %s",
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",
op, typeTypeName(tp1), typeTypeName(tp2));
+#endif
+ elog(WARN, "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));
}