Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

ert78gb/mysql2-object-creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is the reproduction repo of changed mysql default object. The behaviour introduced in sidorares/node-mysql2#2574 PR.

Steps to reproduce

  1. Clone this repo
  2. Run npm install
  3. Run 'docker compose up -d'
  4. Run npm start

The output will be:

  [
+   [Object: null prototype] {
-   {
      total: 2
    }
  ]

The new [Object: null prototype] appeared in the output. The reason is the new constructor of the object in the mysql2 library. https://github.com/sidorares/node-mysql2/blob/cf3fa60842e7e359db5b1d676f93a22ad6fea082/lib/parsers/text_parser.js#L134

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published