Skip to content

How to specify custom query format for a pool? #1626

@CLGitDev

Description

@CLGitDev

In the documentation, I've come across the statement "Pools accept all the same options as a connection." However, when I change my code from mysql.createConnection to mysql.createPool and fire a query, I'm getting ER_PARSE_ERROR.

I'm sure the syntax of my SQL is correct and it runs perfectly fine under a connection created via mysql.createConnection. Just want to double check what is the correct way of defining a custom query format for a connetion pool?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions