Skip to content

[email protected] nodjes, I can't see logging sql value detail #10661

Closed

Description

@zacard-orc
// 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 ~

Activity

  1. ALiangLiang commented on Mar 31, 2019

    @ALiangLiang
    Contributor

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

  2. SimonSchick commented on Mar 31, 2019

    @SimonSchick
    Contributor

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

  3. SimonSchick commented on Mar 31, 2019

    @SimonSchick
    Contributor

    Duplicate of #10067

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions