On Tuesday 29 November 2005 02:11, John Siracusa wrote: > On 11/28/05 5:18 PM, Bernhard Graf wrote: > > For auto-initialization I'm trying to teach RDBO that MySQL's > > smallint is an integer, but w/o success. > > Also, I'm going to add smallint and tinyint mappings to the default > column classes.
Nice. But still I don't know why adding my own types fails. I'm refering to http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.52/lib/Rose/DB/Object/Metadata.pm#column_type_classes: <cite> This hash is class data. If you want to modify it, I suggest making your own subclass of Rose::DB::Object::Metadata and then setting that as the meta_class of your Rose::DB::Object subclass. </cite> BTW: What about MySQLs enum type? I think this could be emulated in Pg with (var)char + CHECK: MySQL: switch enum('off','on') NOT NULL DEFAULT 'off' Pg: switch char(3) NOT NULL CHECK(switch IN (on,off)) DEFAULT 'off' -- Bernhard Graf ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object