From 83d4a3197227c0e1021be8bcdaf166e4b673fe75 Mon Sep 17 00:00:00 2001
From: gmantele <gmantele@ari.uni-heidelberg.de>
Date: Thu, 21 Jul 2016 20:51:56 +0200
Subject: [PATCH] [TAP] Little correction of the previous commit: ORDER BY
 indices were wrong. Schema were still ordered by schema_name instead of
 schema_index when this latter exists.

---
 src/tap/db/JDBCConnection.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tap/db/JDBCConnection.java b/src/tap/db/JDBCConnection.java
index fb27df9..15cda97 100644
--- a/src/tap/db/JDBCConnection.java
+++ b/src/tap/db/JDBCConnection.java
@@ -901,7 +901,7 @@ public class JDBCConnection implements DBConnection {
 			}
 			sqlBuf.append(" FROM ").append(translator.getTableName(tableDef, supportsSchema));
 			if (hasSchemaIndex)
-				sqlBuf.append(" ORDER BY 1,4,2");
+				sqlBuf.append(" ORDER BY 4");
 			else
 				sqlBuf.append(" ORDER BY 1");
 
-- 
GitLab