supports_for_update_of = False # default for MySQL ...
# ... may be updated to True for MySQL 8+ in initialize()
- supports_notnull_generated_columns = False # Only available ...
- # ... in MySQL 5.7+
-
_requires_alias_for_on_duplicate_key = False # Only available ...
# ... in MySQL 8+
self._is_mysql and self.server_version_info >= (8,)
)
- self.supports_notnull_generated_columns = (
- self._is_mysql and self.server_version_info >= (5, 7)
- )
-
self._needs_correct_for_88718_96365 = (
not self.is_mariadb and self.server_version_info >= (8,)
)
10,
2,
)
+
+ @property
+ def _supports_notnull_generated_columns(self):
+ return self._is_mysql and self.server_version_info >= (5, 7)
@reflection.cache
def get_schema_names(self, connection, **kw):
["u TIMESTAMP DEFAULT CURRENT_TIMESTAMP"],
["v INTEGER GENERATED ALWAYS AS (4711) VIRTUAL NOT NULL"],
]
- if connection.dialect.supports_notnull_generated_columns:
+ if connection.dialect._supports_notnull_generated_columns:
test_cases.append(
["v INTEGER GENERATED ALWAYS AS (4711) VIRTUAL NOT NULL"])