Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcaaf941

Browse files
author
Dave Cramer
committed
changed sort of column names to sort by attnum, not attname
1 parentec1bee1 commitcaaf941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ public java.sql.ResultSet getColumns(String catalog, String schemaPattern, Strin
23092309
if (columnNamePattern !=null && !"".equals(columnNamePattern)) {
23102310
sql +=" AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' ";
23112311
}
2312-
sql +=" ORDER BY nspname,relname,attname ";
2312+
sql +=" ORDER BY nspname,relname,attnum ";
23132313

23142314
ResultSetrs =connection.createStatement().executeQuery(sql);
23152315
while (rs.next())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp