[CONJS-239] When using connection with callback, pre-commands might be executed after requested query Created: 2023-01-30 Updated: 2023-02-02 Resolved: 2023-02-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | other |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
There can be multiple pre-commands:
When using callback connection, other commands can be programmed by application before connection is really established. In this particular case, the pre-commands might not be executed still. example :
conn is a connection object, but authentication isn't still done (it will only be done when 'connect' event is emited) Correction is to ensure pre-command are executed before any "quick commands" |