-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Node v12 breaks addForeignKey #635
Comments
Might be a similar issue as on one of the other drivers. I will check this. Thank you for reporting! |
I think I’ve found the issue. I checked the v12 changelogs to the util. And it appears this change was implemented: nodejs/node#23162 It looks like the formatter now checks if the value is a function and uses util.inspect rather than returning a string before. So the ddlescape function in the formatter is now causing an issue. |
I am facing same issue. |
This is also happening on Windows 10
|
I'm facing this issue too. Any solution guys? thank you. |
Same issue here, will use plain sql in the meantime |
there is a new driver version of mysql 2.0.0. it is major release since all drivers signal incompatibility to versions older than node 8. |
Will this be fixed for postgresql too? |
Hi
For mysql it is. Bumpimg db-migrate mysql plugin (or driver dunno what it’s
called) version fixed it for me. No idea about postgres.
Regards
Le jeu. 30 avr. 2020 à 13:10, StickMan077 <notifications@github.com> a
écrit :
Is this Issue resolved?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#635 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANLKXKIGYBW2LO7P7HQIHLRPFMEDANCNFSM4IDEAKGQ>
.
--
Frédéric Leroy
+33 6 85 84 49 07
|
As @fredleroy said. It is fixed, but if you @stenrap doesn't provide us with any details, we wont be able to help. Please post your environment. |
I'm submitting a...
Current behavior
On node v12 when trying to add a foreign key the util.format() function no longer formats the SQL correctly and an error occurs.
Expected behavior
On node version's before v12 the util.format() function that is used in addForeignKey works successfully and format the SQL correctly.
Minimal reproduction of the problem with instructions
Install node v12 and try creating a table with a foreign key or adding a foreign key to an exisiting table.
Environment
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: