mysql2postgres icon indicating copy to clipboard operation
mysql2postgres copied to clipboard

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

Open thiagobonfante opened this issue 13 years ago • 6 comments

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

thiagobonfante avatar Jan 20 '12 10:01 thiagobonfante

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

mraaroncruz avatar Feb 06 '12 17:02 mraaroncruz

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

thiagobonfante avatar Feb 06 '12 19:02 thiagobonfante

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

mraaroncruz avatar Feb 06 '12 19:02 mraaroncruz

Glad to help ;)

thiagobonfante avatar Feb 06 '12 20:02 thiagobonfante

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

nodrog avatar Oct 02 '12 19:10 nodrog

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

settermjd avatar Apr 11 '13 03:04 settermjd