.. changelog::
:version: 0.9.8
+ .. change::
+ :tags: feature, postgresql, pg8000
+ :versions: 1.0.0
+ :pullreq: github:125
+
+ Support is added for "sane multi row count" with the pg8000 driver,
+ which applies mostly to when using versioning with the ORM.
+ The feature is version-detected based on pg8000 1.9.14 or greater
+ in use. Pull request courtesy Tony Locke.
+
.. change::
:tags: bug, engine
:versions: 1.0.0
}
)
+ def initialize(self, connection):
+ if self.dbapi and hasattr(self.dbapi, '__version__'):
+ self._dbapi_version = tuple([
+ int(x) for x in
+ self.dbapi.__version__.split(".")])
+ else:
+ self._dbapi_version = (99, 99, 99)
+ self.supports_sane_multi_rowcount = self._dbapi_version >= (1, 9, 14)
+ super(PGDialect_pg8000, self).initialize(connection)
+
@classmethod
def dbapi(cls):
return __import__('pg8000')