diff options
| author | nathan <nathan.alexander.rice@gmail.com> | 2013-12-09 11:52:23 -0500 |
|---|---|---|
| committer | nathan <nathan.alexander.rice@gmail.com> | 2013-12-09 11:52:23 -0500 |
| commit | ba73d619ca2199d96e92646021af3eb95186725e (patch) | |
| tree | 95efeb2fb89a1c30005dd7e31fff3a5559d1d7d3 /lib | |
| parent | 64288c7d6ffc021e2388aa764e9a3b921506c7a0 (diff) | |
| parent | b653fb3a23a0388814d9ab79b884d64d396baff1 (diff) | |
| download | sqlalchemy-ba73d619ca2199d96e92646021af3eb95186725e.tar.gz | |
Merge branch 'rel_0_9' of https://github.com/nathan-rice/sqlalchemy into rel_0_9
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/dialects/mssql/base.py | 8 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/operators.py | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/base.py b/lib/sqlalchemy/dialects/mssql/base.py index 06570b032..c8e0d7dda 100644 --- a/lib/sqlalchemy/dialects/mssql/base.py +++ b/lib/sqlalchemy/dialects/mssql/base.py @@ -1018,13 +1018,11 @@ class MSDDLCompiler(compiler.DDLCompiler): return text def visit_drop_index(self, drop): - return "\nDROP INDEX %s.%s" % ( - self.preparer.quote_identifier(drop.element.table.name), - self._prepared_index_name(drop.element, - include_schema=True) + return "\nDROP INDEX %s ON %s" % ( + self._prepared_index_name(drop.element, include_schema=False), + self.preparer.format_table(drop.element.table) ) - class MSIdentifierPreparer(compiler.IdentifierPreparer): reserved_words = RESERVED_WORDS diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 5bd4b302b..a156a9796 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -831,7 +831,11 @@ _PRECEDENCE = { and_: 3, or_: 2, comma_op: -1, - collate: 7, + + desc_op: 3, + asc_op: 3, + collate: 4, + as_: -1, exists: 0, _asbool: -10, |
