Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Breaking changes in node-red-node-mysql dependency

Aperta
#1,142 11 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, mysql, node.js
Ambito
backend, databases

Direzione di ricerca

Inizia riproducendo un SELECT su una colonna contenente JSON convertito in stringa in node-red-node-mysql con le versioni riportate di Node-RED e Node.js. Poi ispeziona il pacchetto node-red-node-mysql e la configurazione della sua dipendenza mysql2; il lavoro è completato quando la colonna viene restituita come stringa originale senza modificare gli altri risultati della query.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Current Behavior

node-red-node-mysql returns parsed JSON instead of string when column contains JSON-formatted text

I noticed this issue after rebuilding my Node-RED Docker container. My application had been working correctly, but after recreating the container and reinstalling dependencies, the node-red-node-mysql node started returning different data for the same query, despite using the same version of the Node-RED MySQL node.

Specifically, when a database column contains JSON data stored as a string, the node now returns a parsed JavaScript object instead of the original string value. This broke parts of my existing flow that expected the column value to remain a string.

The behavior appears to be related to a change in the mysql2 dependency. While investigating, I found that mysql2 introduced a breaking change regarding JSON handling, apparently: jsonStrings: true config option should be active

Related issue:
https://github.com/sidorares/node-mysql2/issues/4402

Expected Behavior

node-red-node-mysql returns data from a column/table with no parsing

Steps To Reproduce

Perform a Select of a column that contains a stringified json

Environment
  • Node-RED version: 5.5.0
  • Node.js version: 24
Lingua principale
JavaScript
Stelle
1.1k
Fork
610
Merge medio
1g 4h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di node-red/node-red-nodes

Tutte le issue di node-red/node-red-nodes

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.