Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv27564/compiler/algebra
Modified Files:
algebra_cse.c
Log Message:
-- Fixed the equality-check for the referenced-table-operator (la_ref_tbl).
U algebra_cse.c
Index: algebra_cse.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/algebra_cse.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- algebra_cse.c 7 May 2009 14:22:39 -0000 1.82
+++ algebra_cse.c 27 May 2009 14:02:41 -0000 1.83
@@ -183,11 +183,20 @@
return true;
break;
-
- case la_ref_tbl:
-
- return (strcmp(a->sem.ref_tbl.name, b->sem.ref_tbl.name) == 0);
- break;
+ case la_ref_tbl:
+
+ if (strcmp(a->sem.ref_tbl.name, b->sem.ref_tbl.name) != 0)
+ return false;
+
+ if (a->schema.count != b->schema.count)
+ return false;
+
+ for (unsigned int i = 0; i < a->schema.count; i++)
+ if (a->schema.items[i].name != b->schema.items[i].name
||
+ a->schema.items[i].type != b->schema.items[i].type)
+ return false;
+ return true;
+ break;
case la_attach:
return (a->sem.attach.res == b->sem.attach.res &&
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins