[CDBI] Accessing a column named Sequence?

Edward J. Sabol sabol at alderaan.gsfc.nasa.gov
Tue Dec 4 18:33:17 GMT 2007


Kevin Brown asked:
> I'm trying to access a database that was created for use in biological
> information. As such the database has columns like Sequence which
> creates a conflict in Class::DBI when it tries to create the accessor
> for the column and runs into the fact that _sequence_accessor already
> exists. Is there a way around this since I can't rename the column?

Rename the accessor instead.

http://search.cpan.org/~tmtm/Class-DBI/lib/Class/DBI.pm#Changing_Your_Column_Accessor_Method_Names

Hope this helps,
Ed



More information about the ClassDBI mailing list