You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs when you call getConnection method on PoolNamespace instance.
The lib/pool_cluster.js file requires a cb parameter (1 argument) but it's undefined because PromisePoolCluster.getConnection in promise.js sends three (3) arguments: pattern, selector and a callback function, so wether calls getConnection without any argument, the cb argument is always undefined.
classPoolNamespace{constructor(cluster,pattern,selector){this._cluster=cluster;this._pattern=pattern;this._selector=makeSelector[selector]();}getConnection(cb){constclusterNode=this._getClusterNode();if(clusterNode===null){returncb(newError('Pool does Not exists.'));}returnthis._cluster._getConnection(clusterNode,(err,connection)=>{if(err){returncb(err);}if(connection==='retry'){returnthis.getConnection(cb);}returncb(null,connection);});}
Environment
nodejs: v20.11.1
mysql2: v3.11.3
The text was updated successfully, but these errors were encountered:
This error occurs when you call getConnection method on PoolNamespace instance.
The lib/pool_cluster.js file requires a cb parameter (1 argument) but it's undefined because PromisePoolCluster.getConnection in promise.js sends three (3) arguments: pattern, selector and a callback function, so wether calls getConnection without any argument, the cb argument is always undefined.
MyClass.ts
promise.js
pool_cluster.js
Environment
The text was updated successfully, but these errors were encountered: