[GRASS5] 5.7: dbf driver and 'double' initialization

Glynn Clements glynn.clements at virgin.net
Wed Sep 8 03:47:26 EDT 2004


Markus Neteler wrote:

> thanks for the patch. A minor thing might be missing:
> 
> echo "UPDATE dourokukan SET testc=50 WHERE testc is NULL" | db.execute
> DBMI-DBF driver error:
> Unknown operator 18

Right; there are two switch statements which examine the operator. I
extended the one in eval_node(), but missed the one in
eval_node_type(). Try the attached patch.

-- 
Glynn Clements <glynn.clements at virgin.net>

-------------- next part --------------
--- db/drivers/dbf/dbfexe.c~	Tue Sep  7 08:42:06 2004
+++ db/drivers/dbf/dbfexe.c	Wed Sep  8 08:44:23 2004
@@ -896,6 +896,10 @@
 			return SQLP_BOOL;
 		    }
 
+		case SQLP_ISNULL:
+		case SQLP_NOTNULL:
+		    return SQLP_BOOL;
+
 		/* Logical */
 		case SQLP_AND:
 		    if ( left == SQLP_NULL || right == SQLP_NULL ) {


More information about the grass-dev mailing list