dbsrgits/sql-translator — pull request #24 by kiwiroy (2012-12-18 22:38:25+00:00)
Title: add_index expects an array ref not a array ref of stringified array refs...

That is to say that running
```bash
sqlt -f DBI --dsn 'dbi:Pg:host=;dbname=' --db-user '' -t MySQL
```
results in
```sql
CREATE TABLE `migrate_version` (
`repository_id` text NOT NULL,
`repository_path` text NULL,
`version` integer NULL,
UNIQUE INDEX `migrate_version_pkey` (`ARRAY(0xa923264)`)
);
```

Other parsers effected is unknown and only the PostgreSQL DBI parser was investigated

This patch fixes this ensuring the result is
```sql
CREATE TABLE `migrate_version` (
`repository_id` text NOT NULL,
`repository_path` text NULL,
`version` integer NULL,
UNIQUE INDEX `migrate_version_pkey` (`repository_id`)
);
```