Update oracle

This commit is contained in:
sunkaixuan
2025-09-12 18:36:46 +08:00
parent 254a3b333c
commit 0d6cdf4aa4
2 changed files with 7 additions and 7 deletions

View File

@@ -555,11 +555,11 @@ WHERE table_name = '"+tableName+"'");
private List<string> GetPrimaryKeyByTableNames(string tableName) private List<string> GetPrimaryKeyByTableNames(string tableName)
{ {
string cacheKey = "DbMaintenanceProvider.GetPrimaryKeyByTableNames." + this.SqlBuilder.GetNoTranslationColumnName(tableName).ToLower(); //string cacheKey = "DbMaintenanceProvider.GetPrimaryKeyByTableNames." + this.SqlBuilder.GetNoTranslationColumnName(tableName).ToLower();
cacheKey = GetCacheKey(cacheKey); //cacheKey = GetCacheKey(cacheKey);
return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey, //return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
() => // () =>
{ // {
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent; var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false; this.Context.Ado.IsEnableLogEvent = false;
string sql = @" select distinct cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au string sql = @" select distinct cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au
@@ -568,7 +568,7 @@ WHERE table_name = '"+tableName+"'");
var pks = this.Context.Ado.SqlQuery<string>(sql); var pks = this.Context.Ado.SqlQuery<string>(sql);
this.Context.Ado.IsEnableLogEvent = oldIsEnableLog; this.Context.Ado.IsEnableLogEvent = oldIsEnableLog;
return pks; return pks;
}); //});
} }
public string GetTableComment(string tableName) public string GetTableComment(string tableName)

View File

@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.203-preview15</version> <version>5.1.4.203-preview17</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>