Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I had to change select.js code so that it works without error #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Deniskiplangat
Copy link

using the previous code i got this error

SqlError: (conn:-1, no: 45027, SQLState: HY000) Cannot add request to pool, pool is closed sql: SELECT * from demo.contacts
at Object.module.exports.createError (/home/camindo/Node/mariadbnodeconnection/node_modules/mariadb/lib/misc/errors.js:66:10)
at /home/camindo/Node/mariadbnodeconnection/node_modules/mariadb/lib/pool.js:538:24 {
sqlMessage: 'Cannot add request to pool, pool is closed',
sql: 'SELECT * from demo.contacts',
fatal: false,
errno: 45027,
sqlState: 'HY000',
code: 'ER_POOL_ALREADY_CLOSED'

using the previous code i got this error

SqlError: (conn:-1, no: 45027, SQLState: HY000) Cannot add request to pool, pool is closed
sql: SELECT * from demo.contacts
    at Object.module.exports.createError (/home/camindo/Node/mariadbnodeconnection/node_modules/mariadb/lib/misc/errors.js:66:10)
    at /home/camindo/Node/mariadbnodeconnection/node_modules/mariadb/lib/pool.js:538:24 {
  sqlMessage: 'Cannot add request to pool, pool is closed',
  sql: 'SELECT * from demo.contacts',
  fatal: false,
  errno: 45027,
  sqlState: 'HY000',
  code: 'ER_POOL_ALREADY_CLOSED'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant