aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-19 07:14:14 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-19 07:14:14 +0000
commita7cfd655322745b724523195f9879aa9896fa968 (patch)
treea02cc018d54034207c4d9cc6c354597a92f97db0 /src/backend/utils
parent3704b99522dfd24849facdd574a2fdb218326469 (diff)
downloadpostgresql-a7cfd655322745b724523195f9879aa9896fa968.tar.gz
postgresql-a7cfd655322745b724523195f9879aa9896fa968.zip
Fixes:
Select queries with an isnull or notnull clause, like "select * where somefield isnull", crash the backend if the table has at least one index. If the indices are deleted the queries work again. Also the explain command fail in the same way. The is caused by a bug in subroutine of the optimizer which doesn't check null values in the clauses. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/adt/varlena.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c
index e3f3c939306..7b186f02fe4 100644
--- a/src/backend/utils/adt/varlena.c
+++ b/src/backend/utils/adt/varlena.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.2 1996/07/19 06:08:21 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.3 1996/07/19 07:14:14 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -198,8 +198,6 @@ textout(struct varlena *vlena)
/* ========== PUBLIC ROUTINES ========== */
-/*
-
/*
* textlen -
* returns the actual length of a text* (which may be less than