Skip to content
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

Mysql2psql: conversion failed: undefined method `hour' for nil:NilClass #41

Open
thiagobonfante opened this issue Jan 20, 2012 · 6 comments

Comments

@thiagobonfante
Copy link

Hi,

I'm trying to convert a database but still getting this error:

"Mysql2psql: conversion failed: undefined method `hour' for nil:NilClass"

Regards,

Thiago Bonfante

@mraaroncruz
Copy link

I just received this error as well. I will post something if I find a fix.

@thiagobonfante
Copy link
Author

pferdefleisch

The problem is related to columns with type "TIME". Like me, you can convert those columns to "DATETIME" and keep going with the convertion.

At least, this workaround was good enough to me.

Regards,

Thiago Bonfante

@mraaroncruz
Copy link

Thanks a lot. That totally will work for me. :)

@thiagobonfante
Copy link
Author

Glad to help ;)

@nodrog
Copy link

nodrog commented Oct 2, 2012

Any news on this, i am having the same problem.

Thiago are you saying to convert the DATETIME in the MySql database to TIME or the other way round.

Many thanks

@settermjd
Copy link

Thanks. After making the conversion, all's worked well.

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

No branches or pull requests

5 participants