From d8510b031c93408fdba5e6e7b1d0a3e05aaeea46 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 20 Feb 2015 19:13:21 +0100 Subject: [PATCH] Cleanup the MS SQL schema introspection queries, see #183. --- src/sources/mssql/mssql-schema.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sources/mssql/mssql-schema.lisp b/src/sources/mssql/mssql-schema.lisp index 07de034..e8dd95d 100644 --- a/src/sources/mssql/mssql-schema.lisp +++ b/src/sources/mssql/mssql-schema.lisp @@ -121,7 +121,7 @@ ~:[~*~;and (~{~a~^~&~10t or ~})~] ~:[~*~;and (~{~a~^~&~10t and ~})~] -order by table_schema, table_name, ordinal_position" +order by c.table_schema, c.table_name, c.ordinal_position" (db-name *mssql-db*) table-type-name including ; do we print the clause? @@ -277,7 +277,7 @@ order by SchemaName, ~:[~*~;and (~{~a~^ or ~})~] ~:[~*~;and (~{~a~^ and ~})~] -ORDER BY CONSTRAINT_NAME, KCU1.ORDINAL_POSITION" +ORDER BY KCU1.CONSTRAINT_NAME, KCU1.ORDINAL_POSITION" (db-name *mssql-db*) (db-name *mssql-db*) including ; do we print the clause? (filter-list-to-where-clause including