changed sort of column names to sort by attnum, not attname

This commit is contained in:
Dave Cramer 2002-12-05 01:11:43 +00:00
parent ec1bee1478
commit caaf941070

View File

@ -2309,7 +2309,7 @@ public abstract class AbstractJdbc1DatabaseMetaData
if (columnNamePattern != null && !"".equals(columnNamePattern)) {
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' ";
}
sql += " ORDER BY nspname,relname,attname ";
sql += " ORDER BY nspname,relname,attnum ";
ResultSet rs = connection.createStatement().executeQuery(sql);
while (rs.next())