]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- [bug] Dialect no longer emits expensive server
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 May 2012 22:49:23 +0000 (18:49 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 May 2012 22:49:23 +0000 (18:49 -0400)
collations query, as well as server casing,
on first connect.  These functions are still
available as semi-private. [ticket:2404]

CHANGES
lib/sqlalchemy/dialects/mysql/base.py
test/lib/requires.py

diff --git a/CHANGES b/CHANGES
index f37170c0af6122ac5541ad479355c2da2cac454c..b582658956001d50cf7da5dfef1f2f5b2ef04051 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -382,6 +382,11 @@ CHANGES
     expressions.  [ticket:2467]
     also in 0.7.7.
 
+  - [bug] Dialect no longer emits expensive server
+    collations query, as well as server casing,
+    on first connect.  These functions are still 
+    available as semi-private. [ticket:2404]
+
 - oracle
   - [bug] Quoting information is now passed along
     from a Column with quote=True when generating
index a61d59e9bf81d242b003f3a0a7d31d862f826672..afac0d1a4d0834a5beb383a7abc0024b22ec2ab1 100644 (file)
@@ -1980,8 +1980,6 @@ class MySQLDialect(default.DefaultDialect):
     def initialize(self, connection):
         default.DefaultDialect.initialize(self, connection)
         self._connection_charset = self._detect_charset(connection)
-        self._server_casing = self._detect_casing(connection)
-        self._server_collations = self._detect_collations(connection)
         self._detect_ansiquotes(connection)
         if self._server_ansiquotes:
             # if ansiquotes == True, build a new IdentifierPreparer
index d52d26e32438e78c4c28890fb772626081fd882a..2ac939112756ba064c9b66265f03332a163af3c2 100644 (file)
@@ -395,11 +395,11 @@ def _has_sqlite():
 
 def _has_mysql_on_windows():
     return testing.against('mysql') and \
-            testing.db.dialect._server_casing == 1
+            testing.db.dialect._detect_casing(testing.db) == 1
 
 def _has_mysql_fully_case_sensitive():
     return testing.against('mysql') and \
-            testing.db.dialect._server_casing == 0
+            testing.db.dialect._detect_casing(testing.db) == 0
 
 def sqlite(fn):
     return _chain_decorators_on(