Skip to content

Couldn't create indexes / undefined method "parse_csv" #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
forthrin opened this issue May 3, 2012 · 2 comments
Closed

Couldn't create indexes / undefined method "parse_csv" #42

forthrin opened this issue May 3, 2012 · 2 comments

Comments

@forthrin
Copy link

forthrin commented May 3, 2012

The following error occurs when trying to convert InnoDB tables with foreign keys.

Couldn't create indexes on #Mysql2psql::MysqlReader::Table:0x10118db28 ([{:primary=>true, :columns=>["id"]}, {:columns=>["rr"], :name=>"rr"}])
undefined method `parse_csv' for "rr":String
/Library/Ruby/Gems/1.8/../mysql2psql/mysql_reader.rb:110:in "load_indexes"
/Library/Ruby/Gems/1.8/../mysql2psql/mysql_reader.rb:105:in "each"
/Library/Ruby/Gems/1.8/../mysql2psql/mysql_reader.rb:105:in "load_indexes"

The foreign key is defined as follows:

constraint "rr" foreign key ("rr") references "other" ("id") on delete cascade on update cascade

@forthrin forthrin closed this as completed May 3, 2012
@forthrin forthrin reopened this May 3, 2012
@mworrell
Copy link
Contributor

It seems that the String::parse_csv method is introduced in Ruby 1.9.1

http://apidock.com/ruby/String/parse_csv

@paazmaya
Copy link
Contributor

Closing as an old issue, that would seem to be out of date.
Feel free to re-open and update with comments against the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants