-
Notifications
You must be signed in to change notification settings - Fork 2.5k
release pool connection restores pool user configuration #837
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
Closed
seangarner
wants to merge
124
commits into
mysqljs:master
from
seangarner:change-user-on-pool-connection-release
Closed
Changes from 2 commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
b85d1e6
release pool connection restores pool user configuration
seangarner 0d7a863
emit new connection when restoring user
seangarner dd01cb2
moved restoreUser onto Pool proto
seangarner c884488
fix changeUser test for node 0.8
seangarner f1c8505
Update readme and changes
seangarner 4ea53a0
Add code POOL_NOEXIST in PoolCluster error
quibusus 07dc660
docs: fix typo in code in readme
dougwilson 6cc5c24
Return Query object from pool.query like conn.query
dougwilson 8c78e8b
Use EventEmitter.listenerCount when possible
dougwilson c3e7a13
Default connectTimeout to 10 seconds
dougwilson 98c2b7f
Fix domain for connection.connect
dougwilson 45aeae2
Add timeout option to all sequences
dougwilson 853bb4b
Add acquireTimeout pool option
dougwilson 439236a
Remove old compatibility layer in Buffer-to-string
dougwilson be6342d
Fix PROTOCOL_PACKETS_OUT_OF_ORDER error to be catchable
dougwilson 4eb0b45
Add connection.escapeId and pool.escapeId helpers
dougwilson 1d196d5
tests: reorganize tests into unit/integration
dougwilson 98fd2ee
docs: remove completed item from TODO
dougwilson f2df9c7
Use acquireTimeout for connection handshake timeout
dougwilson b5a9eb8
Parse default field of field packet correctly
dougwilson 87f1078
Make errors from the parser catchable
dougwilson 91b3467
Include packets that failed parsing under debug
dougwilson bc54aac
build: minor package.json clean up
dougwilson 65b217e
2.4.0
dougwilson 66ece32
build: add coverage reporting with istanbul
dougwilson 2be5ae4
Fix pool.query not invoking callback on connection error
dougwilson efb10ca
2.4.1
dougwilson 2d07fbf
Fix timing of fatal protocol errors bubbling to user
dougwilson cb127ef
tests: improve timeout tests
dougwilson f6a2209
Fix stray protocol packet errors to be catchable
dougwilson a0cb232
Fix incorrect sequence packet errors to be catchable
dougwilson d925970
2.4.2
dougwilson 9824742
Fix pool.query to use typeCast configuration
dougwilson 46481a4
2.4.3
dougwilson 5f66ebd
Add enqueue event to protocol and connection
dougwilson b37beae
Blacklist unsupported connection flags
dougwilson fc90c7d
docs: update badges
dougwilson c6bd796
Make only column names enumerable in RowDataPacket
dougwilson f815167
Support Node.js 0.6
dougwilson af76081
deps: [email protected]
dougwilson 911d2a8
deps: [email protected]
dougwilson 97fb2f9
Remove underscore from devDependencies
dougwilson 47fd30c
Add code POOL_ENQUEUELIMIT to error reaching queueLimit
dougwilson 37a07b3
Add enqueue event to pool
dougwilson 4519edb
docs: move connection event location
dougwilson eb204e0
2.5.0
dougwilson 1f6393a
docs: add pool.end() documentation
3b131c3
Fix pool.end race conditions
dougwilson 446735d
Fix pool.getConnection race conditions
dougwilson 977ccfc
2.5.1
dougwilson bfeb3a4
test: store the value in large packet test
dougwilson 79c733d
Fix receiving large text fields
dougwilson 7d46d1b
2.5.2
dougwilson 917d41a
Fix pool.query not emitting connection errors
dougwilson 07a8abe
2.5.3
dougwilson 83a0cc2
tests: add PoolConnection.pause/resume tests
dougwilson 5bad10f
docs: use non-unit default value for timeouts
dougwilson befe3cc
Fix various error code strings
dougwilson b3111b8
Fix error if falsy error thrown in callback handler
dougwilson 21d0c22
docs: fix objectMode documentation
dougwilson ec4a52a
deps: [email protected]
dougwilson c95ca93
2.5.4
dougwilson 7ec0143
docs: add connection.ping to readme
dougwilson 89adcba
deps: require-all@~1.0.0
dougwilson 4b29195
deps: [email protected]
dougwilson 3d2c76b
docs: use shields.io for node.js version badge
dougwilson 9a0f8fd
build: use Travis CI container infrastructure
dougwilson c3b9b18
Support Node.js 0.12
dougwilson 75d411b
docs: add note about mysql.escape()
alsotang 000786e
docs: add additional information on object escape behavior
dougwilson 20ff459
Store SSL presets in JS instead of JSON
dougwilson 3f0057f
tests: improve fragility of timezone test
dougwilson 09feeb0
tests: use environment for connections on CI
dougwilson 616521c
tests: remove dead code from test
dougwilson 09d9a85
tests: skip large field tests if necessary
dougwilson b41a38a
docs: update badges
dougwilson 3fc4bbe
docs: add table of contents
jobrios fc85b19
build: add AppVeyor
dougwilson f5752a0
Update Amazon RDS certificates
dougwilson 5e63638
2.5.5
dougwilson ff37b3e
docs: fix wording for true/false conversions
alsotang 6df3bae
deps: [email protected]
dougwilson b8176fc
docs: add note about pausing results too long
dougwilson adaa340
Add poolCluster.remove to remove pools from the cluster
mlshvdv 405c192
Improve speed formatting SQL
jonapgar d99fbf9
Break apart PoolCluster into one class per file
dougwilson 91b7676
docs: list the main .query() argument signatures
dougwilson 4fb3755
Support io.js
dougwilson d6dcc8b
docs: adjust multipleStatements option description
LinusU 9f5b12b
build: [email protected]
dougwilson 871d1d4
Make PoolCluster maps plain objects
dougwilson 24ab607
Add optional callback to poolCluster.end
dougwilson c31a014
Fix un-catchable error from PoolCluster when MySQL server offline
dougwilson d91a62a
build: clean up .gitignore
dougwilson 0c8f0b1
build: remove .npmignore file
dougwilson 93889ac
deps: [email protected]
dougwilson 3bf31da
Fix poolCluster.add to throw if PoolCluster has been closed
dougwilson c538d35
Fix poolCluster.add to throw if id already defined
dougwilson d99e162
Fix un-catchable error from poolCluster.remove
dougwilson 40c36c7
Remove unnecessary _serviceableNodeIds from PoolCluster
dougwilson e9e4cb6
Add restoreNodeTimeout option to PoolCluster
dougwilson fc84e9e
Fix LOAD DATA INFILE handling in multiple statements
dougwilson 312a8f6
2.6.0
dougwilson ad11fef
deps: [email protected]
dougwilson 07a178f
Update bignumber.js to 2.0.5
dougwilson d79019b
2.6.1
dougwilson 192c23a
Update bignumber.js to 2.0.7
dougwilson 9559d80
docs: fix typos in readme
d5b9b87
Fix Connection.createQuery for no SQL
dougwilson 92b13b5
docs: fix duplicate word
6eb389a
docs: add additional .query() documentation
fe3cd2f
tests: add some query end event tests
dougwilson c7ee866
2.6.2
dougwilson ce30611
build: [email protected]
dougwilson e31bbdc
docs: fix typo in readme
adrianblynch 656b3c9
docs: fix typo in readme
roccivic bf3cf95
Delay implied connect until after .query argument validation
dougwilson d76cfd8
Lazy-load modules from many entry point; reduced memory use
dougwilson 32c2614
Error early if callback argument to .query is not a function
dougwilson 84d34ab
Do not remove connections with non-fatal errors from the pool
dougwilson 5c176d5
docs: add note on binary character set type casting
dougwilson 38db266
Destroy/end connections removed from the pool on error
dougwilson 16b460e
2.7.0
dougwilson 95bee5d
release pool connection restores pool user configuration
seangarner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire routine needs to be moved into the
Pool
. This is because restoring a user is a pool operation, not a connection operation. A user callingconn.restoreUser()
doesn't make any sense.