Skip to content

Commit 1a2f628

Browse files
committed
order table_name when get by tablegroup
1 parent be517a3 commit 1a2f628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/location/LocationUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public class LocationUtil {
225225

226226
private static final String TABLE_GROUP_GET_TABLE_NAME = "SELECT /*+READ_CONSISTENCY(WEAK)*/ table_name "
227227
+ "FROM oceanbase.CDB_OB_TABLEGROUP_TABLES "
228-
+ "WHERE tablegroup_name = ? and tenant_id = ? limit 1;";
228+
+ "WHERE tablegroup_name = ? and tenant_id = ? order by table_name limit 1;";
229229

230230
private static final int TEMPLATE_PART_ID = -1;
231231

0 commit comments

Comments
 (0)