It's a sane suggestion and I would like to honor it, but this could
lead to a potentially confusing behavior if people add a column named
"row_type", it's silently accepted, but then it's used behind their
back as the polymorphic column.
There ought to be a way for the user to tell "I know what I'm doing",
and an option only for that seems way overkill. Maybe the following
scheme would do:
split the polymorphic option into
* polymorphic: a simple boolean, True by default
* polymorphic_col: the name for the polymorphic col. The option would
default to None, and if it's not the default name ("rowtype") would be
used. Using a manually defined column would only work if the column
name was set manually.
I'm not really happy with this scheme either since it is a bit complicated...
--
Gaëtan de Menten
http://openhex.org