- correct handling of CamelCase names with numbers (eg. foo2Bar -> Foo2Bar,
foo2_bar)
- check rel accessors for method conflicts
+ - add an option to add extra code to Result classes
- Relationships
- Re-scan relations/tables after initial relation setup to find
- preserve_case mode
- domains
- Oracle
- - data_type tests
- table/column comments
- introspect on_update/on_delete/is_deferrable
- introspect view SQL
if (lc($data_type) eq 'timestamp without time zone') {
$info->{data_type} = 'timestamp';
}
+ elsif (lc($data_type) eq 'time without time zone') {
+ $info->{data_type} = 'time';
+ }
my ($precision) = $self->schema->storage->dbh
->selectrow_array(<<EOF, {}, $table, $col);
elsif (lc($data_type) eq 'character varying') {
$info->{data_type} = 'varchar';
- $info->{data_type} = 'text' if not $info->{size};
+ if (not $info->{size}) {
+ $info->{data_type} = 'text';
+ $info->{original}{data_type} = 'varchar';
+ }
}
elsif (lc($data_type) eq 'character') {
$info->{data_type} = 'char';
'char' => { data_type => 'char', size => 1 },
text => { data_type => 'text' },
# varchar with no size has unlimited size, we rewrite to 'text'
- varchar => { data_type => 'text' },
+ varchar => { data_type => 'text',
+ original => { data_type => 'varchar' } },
# Datetime Types
date => { data_type => 'date' },
interval => { data_type => 'interval' },
'interval(2)' => { data_type => 'interval', size => 2 },
- time => { data_type => 'time without time zone' },
- 'time(2)' => { data_type => 'time without time zone', size => 2 },
- 'time without time zone' => { data_type => 'time without time zone' },
- 'time(2) without time zone' => { data_type => 'time without time zone', size => 2 },
+ time => { data_type => 'time' },
+ 'time(2)' => { data_type => 'time', size => 2 },
+ 'time without time zone' => { data_type => 'time' },
+ 'time(2) without time zone' => { data_type => 'time', size => 2 },
'time with time zone' => { data_type => 'time with time zone' },
'time(2) with time zone' => { data_type => 'time with time zone', size => 2 },
timestamp => { data_type => 'timestamp' },