-
Notifications
You must be signed in to change notification settings - Fork 2.5k
typeCast doesn't seem to work when using a connection pool #894
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
Comments
Adding |
Actually, it looks like it may indeed not work. |
Specifically, it's only a bug with |
Sorry, I should have specified it's when using |
Fastest fix ever, awesome, thank you 👍 |
Yep. I actually just fixed it :) You can verify it by doing |
I'm using a connection pool, and in the pool config I pass the typeCast option (using the function in the readme as I'm needing to cast tinyint(1) to booleans). I notice that if I output a connection's typeCast function, the setting is correctly configured there, but when I add an output to the first argument it gets back, instead of a field, it gets the table information.
This makes me unable to use typeCast as a global configuration option for all queries, as I need to set it on every query that I want to convert tinyint to booleans
The text was updated successfully, but these errors were encountered: