Fix column's statistics errors

This commit is contained in:
2026-05-22 09:41:08 -04:00
parent 82c8a6bf84
commit 59aa235f3d
4 changed files with 16 additions and 5 deletions
+4
View File
@@ -87,6 +87,10 @@ class BaseDriver(ABC):
"""Returns list of database name strings."""
pass
def quote_identifier(self, name: str) -> str:
"""Wrap an identifier in the DB-appropriate quote characters."""
return f'"{name}"'
@abstractmethod
def get_tables(self, database: str) -> list:
"""Returns list of TableInfo for the given database."""
+3
View File
@@ -19,6 +19,9 @@ class MSSQLDriver(BaseDriver):
super().__init__(config)
self.db_type = "mssql"
def quote_identifier(self, name: str) -> str:
return f"[{name}]"
def _conn_str(self) -> str:
host = self.config.get("host", "localhost")
port = int(self.config.get("port", 1433))
+3
View File
@@ -18,6 +18,9 @@ class MySQLDriver(BaseDriver):
super().__init__(config)
self.db_type = "mysql"
def quote_identifier(self, name: str) -> str:
return f"`{name}`"
def _connect_kwargs(self) -> dict:
kw = {
"host": self.config.get("host", "localhost"),