Giter Site home page Giter Site logo

Comments (6)

PeterGamez avatar PeterGamez commented on June 15, 2024 1
[
  [Object: null prototype] {
    ...
  }
]

This isn't actually the expected behavior.

For example, we check if the properties are safe and, if so, we create a standard object:

  • execute

parserFn('const result = {};');

  • query

parserFn('const result = {};');

Could you show an example of how you are returning a null object? Maybe updating node_modules could be a valid check 🙋🏻‍♂️

update node_modules are work

from node-mysql2.

sidorares avatar sidorares commented on June 15, 2024

yes, we moved from base {} to Object.create(null) in 3.9.4 but then had to partially revert that due to #2585 via #2591

Is this breaking something on your side @PeterGamez ?

from node-mysql2.

PeterGamez avatar PeterGamez commented on June 15, 2024

@sidorares yes, how i can fix

from node-mysql2.

sidorares avatar sidorares commented on June 15, 2024

Sorry @PeterGamez I still don't understand what issue you are trying to fix

from node-mysql2.

PeterGamez avatar PeterGamez commented on June 15, 2024

@sidorares on rows it return datatype object, i want return datatype array

from node-mysql2.

wellwelwel avatar wellwelwel commented on June 15, 2024
[
  [Object: null prototype] {
    ...
  }
]

This isn't actually the expected behavior.

For example, we check if the properties are safe and, if so, we create a standard object:

  • execute

parserFn('const result = {};');

  • query

parserFn('const result = {};');


Could you show an example of how you are returning a null object?
Maybe updating node_modules could be a valid check 🙋🏻‍♂️

from node-mysql2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.