From e4ad7ca43a8b4a8edebbfa10d88b11e3a9808240 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 20 Mar 2023 00:56:02 +0800 Subject: [PATCH] Update oracle GetIndexList --- .../SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs | 2 +- .../Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs index 20e6496aa..24bc336bf 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs @@ -268,7 +268,7 @@ namespace SqlSugar #region Methods public override List GetIndexList(string tableName) { - var sql = $"SELECT index_name, index_type, column_name\r\nFROM user_ind_columns\r\nWHERE table_name = '{tableName}'"; + var sql = $"SELECT index_name FROM user_ind_columns\r\nWHERE table_name = '{tableName}'"; return this.Context.Ado.SqlQuery(sql); } public override bool AddColumn(string tableName, DbColumnInfo columnInfo) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs index 87c3dd880..9dc707645 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs @@ -274,7 +274,7 @@ namespace SqlSugar #region Methods public override List GetIndexList(string tableName) { - var sql = $"SELECT index_name, index_type, column_name\r\nFROM user_ind_columns\r\nWHERE table_name = '{tableName}'"; + var sql = $"SELECT index_name FROM user_ind_columns\r\nWHERE table_name = '{tableName}'"; return this.Context.Ado.SqlQuery(sql); } public override List GetProcList(string dbName)