then when/if we get there, break it out as a seperate distribution with a
new name.
- support for user-defined-types as Schema deploy hooks
- - normalize float/real/double data types in a most cross-deployment friendly
- fashion, using float(25) as the double boundary where possible
- finish data_type tests for all DBs (DB2 and Informix left)
- generate a schema accessor which stores which SQLT type it was loaded from
- add a settable 'on-behalf-of' version tag (for catalyst model)
$self->next::method(@_);
- $self->schema->storage->sql_maker->name_sep('.');
-
if (not defined $self->preserve_case) {
warn <<'EOF';
$self->preserve_case(1);
}
+ $self->schema->storage->sql_maker->name_sep('.');
+
if ($self->preserve_case) {
$self->schema->storage->sql_maker->quote_char('"');
}
elsif ($info->{data_type} eq 'character') {
$info->{data_type} = 'char';
}
- elsif ($info->{data_type} eq 'real') {
- $info->{data_type} = 'float';
- }
elsif ($info->{data_type} eq 'int64' || $info->{data_type} eq '-9581') {
# the constant is just in case, the query should pick up the type
$info->{data_type} = 'bigint';
# http://www.ibphoenix.com/downloads/60DataDef.zip
#
# Numeric types
- # XXX rewrite low precision floats to 'real'
'smallint' => { data_type => 'smallint' },
'int' => { data_type => 'integer' },
'integer' => { data_type => 'integer' },
'bigint' => { data_type => 'bigint' },
- 'float' => { data_type => 'float' },
+ 'float' => { data_type => 'real' },
'double precision' =>
{ data_type => 'double precision' },
- 'real' => { data_type => 'float' },
+ 'real' => { data_type => 'real' },
- 'float(2)' => { data_type => 'float' },
- 'float(7)' => { data_type => 'float' },
+ 'float(2)' => { data_type => 'real' },
+ 'float(7)' => { data_type => 'real' },
'float(8)' => { data_type => 'double precision' },
'decimal' => { data_type => 'decimal' },