node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

:zap: fast mysqljs/mysql compatible mysql driver for node.js

Results 356 node-mysql2 issues
Sort by recently updated
recently updated
newest added

I have created an singleton connection to use the same connection_id() so the rest app can make use of TEMPORARY TABLES. After some concurrent calls, the connection is broken with...

I wish the requiremets for placeholders names matched the ones for js identifiers. My project uses the local language in domain model identifiers, including some local non-ascii letters (æøå). This...

This error appears each time I install mysql2 using (yarn add mysql2 --save) with Next.js 13.2. I reinstalled Next.js and mysql2 without any other dependencies to ensure it wasn't another...

Without overriding JSON.stringify, the query works fine. When JSON.stringify is overridden, I get `SyntaxError: Unexpected token ':' `This is the entire code. ```javascript const mysql = require('mysql2'); const originalStringify =...

The [code](https://github.com/sidorares/node-mysql2/blob/f5eabbe7f329117baac8dd121b15bdc383a01b71/lib/packets/packet.js#L202) and these tests: ([number](https://github.com/sidorares/node-mysql2/blob/5f0fb8f1f5035e2c0207490aa2f0b838dc82fdc2/test/integration/connection/test-insert-bigint-big-number-strings.js#L27), [string](https://github.com/sidorares/node-mysql2/blob/5f0fb8f1f5035e2c0207490aa2f0b838dc82fdc2/test/integration/connection/test-insert-bigint-big-number-strings.js#L34)) make me think that `result.insertId` can be either a number or a string. If that is correct, what was the reasoning for doing...

Recently the Postgres community supported Cloudflare worker with its [Socket API](https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/). Here are some references: - node-postgres: https://github.com/brianc/node-postgres/commit/07553428e9c0eacf761a5d4541a3300ff7859578 - Postgres.js: https://github.com/porsager/postgres/commit/b88e261b7625f4659cae17197b395ad6933732f1 One of the benefits is to connect to the...

Previously, big numbers were sometimes returned as number instead of string even if the number is larger than `Number.MAX_SAFE_INTEGER` or smaller than `Number.MIN_SAFE_INTEGER`. The behavior was conditional on the equality...

Upgrading from `1.6.1` to `1.7.0` and I am hitting this error: ``` node_modules/mysql2/lib/packets/packet.js:286 if (str.length === 10) { ^ TypeError: Cannot read property 'length' of undefined at Packet.readDateTime (/user/node_modules/mysql2/lib/packets/packet.js:286:13) at...

needs investigation

It can only be reproduced with the following usage. I have a cli application that is using `mysql2/promise` ``` const app = new AppController(...)//...takes in all the db stuffs (async...

Is it possible to use Mysql2 in server mode with the server using SSL? If not, should it be able to do so? Just enabling SSL with capabilityFlags doesnt seem...

server