Open timsehn opened 2 days ago
Once this fix is in: https://github.com/dolthub/go-mysql-server/pull/2759
Dolt and MySQL fail in the exact same spot:
AttributeError: module 'os' has no attribute 'getloadavg'
Looks like a Python os
package version issue.
The SELECT @@admin-version
query is supposed fail. dolphie is using it to determine if this is a ProxySQL or MySQL connection.
# If the query is successful, then the connection is to ProxySQL
try:
self.cursor.execute("SELECT @@admin-version")
self.source = ConnectionSource.proxysql
except Exception:
self.source = ConnectionSource.mysql
Update: It looks like one the system variables has a null value when it should be empty string
AttributeError: 'NoneType' object has no attribute 'isnumeric'
time="2024-11-22T12:31:51-08:00" level=debug msg="Query finished in 1 ms" connectTime="2024-11-22 12:31:46.1455538 -0800 PST m=+250.274868101" connectionDb=tmp2 connectionID=3 query="show global variables"
Repro:
Error in dolphie:
Error in dolt sql-server:
I think we've also got a parsing problem with the
-
in system variables.