* Fix Producer::Oracle translate float and double to float instead of number
* Fix Producer::Oracle generation of too long unique constraint names
* Fix Producer::SQLite when generating VIEWs with add_drop_table => 1
+* Fix Producer::MySQL not quoting index names when requested (RT#56173)
* Fix Field::default_value to behave like a real accessor (allow undef as
an unsetting argument)
* Producer::Oracle tests now use Test::Differences
map { $_ || () }
lc $index->type eq 'normal' ? 'INDEX' : $index->type . ' INDEX',
$index->name
- ? (
- truncate_id_uniquely(
+ ? $qf . truncate_id_uniquely(
$index->name,
$options->{max_id_length} || $DEFAULT_MAX_ID_LENGTH
- )
- )
+ ) . $qf
: '',
'(' . $qf . join( "$qf, $qf", $index->fields ) . $qf . ')'
);
`foo` integer,
`foo2` integer,
`bar_set` set('foo', 'bar', 'baz'),
- INDEX index_1 (`id`),
- INDEX really_long_name_bigger_than_64_chars_aaaaaaaaaaaaaaaaa_aed44c47 (`id`),
+ INDEX `index_1` (`id`),
+ INDEX `really_long_name_bigger_than_64_chars_aaaaaaaaaaaaaaaaa_aed44c47` (`id`),
INDEX (`foo`),
INDEX (`foo2`),
PRIMARY KEY (`id`, `foo`),