Sjoerd Mullender wrote:
Romulo Goncalves wrote:
Update of /cvsroot/monetdb/sql/src/storage In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24421
Modified Files: Tag: Nov2008 store.mx Log Message: Set the pkey from the table structure to NULL to avoid garbage when we are checking if the table already contain a specific pkey...
U store.mx Index: store.mx =================================================================== RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v retrieving revision 1.22 retrieving revision 1.22.2.1 diff -u -d -r1.22 -r1.22.2.1 --- store.mx 30 Oct 2008 08:48:54 -0000 1.22 +++ store.mx 14 Nov 2008 13:46:52 -0000 1.22.2.1 @@ -110,6 +110,8 @@ } list_destroy(k->columns); base_destroy(&k->base); + if ((k->type == pkey) && (k->t->pkey = (sql_ukey *) k))
Do you really mean a single = here? Sorry, but I did not understand the question?
My intention is to set the pkey point in table structure (sql_table) to NULL. Because when I try to create a new pkey I get (pkey already exist) because the pointer has some garbage instead of being NULL which makes the if clause (the one who does the test) to fail. Romulo ^
+ k->t->pkey = NULL; _DELETE(k); }
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Monetdb-sql-checkins mailing list Monetdb-sql-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins
------------------------------------------------------------------------
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________ Monetdb-sql-checkins mailing list Monetdb-sql-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins