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

sequelize@5.1.0 nodjes, I can't see logging sql value detail #10661

Closed
zacard-orc opened this issue Mar 30, 2019 · 3 comments
Closed

sequelize@5.1.0 nodjes, I can't see logging sql value detail #10661

zacard-orc opened this issue Mar 30, 2019 · 3 comments

Comments

@zacard-orc
Copy link

// previos version 
Executed (default): INSERT INTO `moni_gain` (`id`,`user_id`,`order_id`,`gain`,`reason`,`create_at`,`update_at`) VALUES (auto,1001,983,13,'afdadf',now(),xxxxx);

//5.0++ version
Executed (default): INSERT INTO `moni_gain` (`id`,`user_id`,`order_id`,`gain`,`reason`,`create_at`,`update_at`) VALUES (?,?,?,?,?,?,?);

so i can't see the sql after render .......

What do you expect to happen?

I wan't print sql detail after render in version 5.0++ ,how to config in constructor function

What is actually happening?

now there are all ????????????

so ,pls take me a favor, thx ~

@ALiangLiang
Copy link
Contributor

ALiangLiang commented Mar 31, 2019

Try to use DEBUG=sequelize:sql:* node YOUR_CODE.js

@SimonSchick
Copy link
Contributor

This will have the same result, this is due to sequelize now using bind parameters, we will fix this soon.

@SimonSchick
Copy link
Contributor

Duplicate of #10067

@SimonSchick SimonSchick marked this as a duplicate of #10067 Mar 31, 2019
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