mysql2postgres
mysql2postgres copied to clipboard
Mysql2psql: conversion failed: undefined method `hour' for nil:NilClass
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
I just received this error as well. I will post something if I find a fix.
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
Thanks a lot. That totally will work for me. :)
Glad to help ;)
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
Thanks. After making the conversion, all's worked well.