MSSQL dialect needs to filter index column names

Issue #1629 resolved
Former user created an issue

The MSSQL dialect's base::get_indexes() method needs to watch out for column names that end with "(-)".

http://msdn.microsoft.com/en-us/library/ms188771.aspx

A descending indexed column will be listed in the result set with a minus sign (-) following its name; an ascending indexed column, the default, will be listed by its name alone.

Fix:

Patch dialects/mssql/base.py::get_indexes to find and remove that postfix.

Comments (7)

  1. Mike Bayer repo owner
    • changed component to mssql
    • changed milestone to 0.6.xx
    • assigned issue to

    can we replace the various lambda/strip stuff just with a simple regex to clean that up.

    test coverage in test/dialect/test_mssql.py is highly recommended here as well.

  2. Log in to comment