From: Nirgal V. <con...@ni...> - 2011-02-08 23:49:28
|
Here is a more intrusive patch, mostly for indexes: * I was fed up with adding code both in util/mdb-schema.c and gmdb2/schema.c. These were mostly duplicated code. So I moved the common parts in libmdb/backend.c, that means a new function called "print_schema" that will call the relevant code. * Indexed now are generated for postgres backend: normal ones, unique ones, and primary keys. * Fixed a bug in where all the foreign keys were generated when you export only one table (added a parameter to mdb_get_relationships). * Now using PATH_MAX and MDB_MAX_OBJ_NAME macro for sizes of constants in gmdb2/schema.c, rather than hardcoded values 256/100. Question: Do we want to keep all the "sanitize" stuff?? We now have proper escaping for all backends, I think. |