Re: [Monetdb-developers] [Monetdb-pf-checkins] pathfinder/compiler/algebra algebra_cse.c, , 1.82, 1.83
27 May
2009
27 May
'09
6:32 p.m.
Tom, please include all semantical information (also tcols) in this test. On May 27, 2009, at 16:02, Tom Schreiber wrote: > 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 > Monetdb-pf-checkins@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins -- Jan Rittinger Lehrstuhl Datenbanken und Informationssysteme Wilhelm-Schickard-Institut für Informatik Eberhard-Karls-Universität Tübingen http://www-db.informatik.uni-tuebingen.de/team/rittinger
5693
Age (days ago)
5693
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jan Rittinger