-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Getting setting the PIPES_AS_CONCAT sql_mode is unsupported
#2034
Comments
If this is something that only just started happening, it sounds like a regression in Planetside. |
Hmm that's weird. I've opened a discussion over there at the moment. planetscale/discussion#248 |
See below. |
More details here from the PlanetScale side. The issue here is more nuanced than "this is a regression" because this breaking is something we actually consider a bug fix. The change was made specifically here: Vitess has the notion of certain SQL mode flags that are unsupported to be changed by the end user. Before this fix, what this can result in, is wrong results being returned. Vitess itself also parses the SQL queries and for example in the case of sharded setups has to aggregate and combine results from different MySQL instances. This means that we also have an SQL evaluation engine in Vitess. That parser and evaluation engine only deal with the standard MySQL dialect. Options like In order the avoid this silent broken behavior, what we needed to do was explicitly blocking these changes since we don't have any current plans to support modes like Is it possible that |
We chose to enable Similarly, setting I'd support a toggle in |
Sounds great! I do agree on not disabling |
I'm using a planetscale database, which uses vitess under the hood. it was working fine for a past few days, but when I try to build my code today this error occured:
setting the PIPES_AS_CONCAT sql_mode is unsupported
I searched the code and I found that when sqlx connect to the db, it tries to set certain sql_mode on the connection. It can be found in sqlx-core/src/mysql/options/connect.rs
I queried for the current
sql_mode
set on the db, this is the result:It can be clearly see that
PIPES_AS_CONCAT
is not set. So I suspect that planetscale doesn't allow settingsql_mode
but sqlx is trying to set the variable. Is there a way to override this behavior?The text was updated successfully, but these errors were encountered: