mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -493,11 +493,9 @@ namespace SqlSugar
|
|||||||
break;
|
break;
|
||||||
case DbType.Vastbase:
|
case DbType.Vastbase:
|
||||||
config.DbType = DbType.PostgreSQL;
|
config.DbType = DbType.PostgreSQL;
|
||||||
if (this.TempItems == null)
|
if (this.CurrentConnectionConfig.MoreSettings==null)
|
||||||
{
|
this.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings();
|
||||||
this.TempItems = new Dictionary<string, object>();
|
this.CurrentConnectionConfig.MoreSettings.DatabaseModel = DbType.Vastbase;
|
||||||
}
|
|
||||||
this.TempItems.Add("DbType.Vastbase", "DbType.Vastbase");
|
|
||||||
break;
|
break;
|
||||||
case DbType.OceanBase:
|
case DbType.OceanBase:
|
||||||
config.DbType = DbType.MySql;
|
config.DbType = DbType.MySql;
|
||||||
@@ -508,6 +506,9 @@ namespace SqlSugar
|
|||||||
case DbType.PolarDB:
|
case DbType.PolarDB:
|
||||||
config.DbType = DbType.MySql;
|
config.DbType = DbType.MySql;
|
||||||
break;
|
break;
|
||||||
|
case DbType.Doris:
|
||||||
|
config.DbType = DbType.MySql;
|
||||||
|
break;
|
||||||
case DbType.TDengine:
|
case DbType.TDengine:
|
||||||
Check.Exception(SugarCompatible.IsFramework, "TDengine only support .net core");
|
Check.Exception(SugarCompatible.IsFramework, "TDengine only support .net core");
|
||||||
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.TDengine" : "SqlSugar.TDengineCore";
|
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.TDengine" : "SqlSugar.TDengineCore";
|
||||||
|
@@ -30,6 +30,7 @@ namespace SqlSugar
|
|||||||
Tidb,
|
Tidb,
|
||||||
Vastbase,
|
Vastbase,
|
||||||
PolarDB,
|
PolarDB,
|
||||||
|
Doris,
|
||||||
Custom =900
|
Custom =900
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -381,7 +381,7 @@ WHERE tgrelid = '"+tableName+"'::regclass");
|
|||||||
});
|
});
|
||||||
if (!GetDataBaseList(newDb).Any(it => it.Equals(databaseName, StringComparison.CurrentCultureIgnoreCase)))
|
if (!GetDataBaseList(newDb).Any(it => it.Equals(databaseName, StringComparison.CurrentCultureIgnoreCase)))
|
||||||
{
|
{
|
||||||
var isVast = this.Context?.TempItems?.ContainsKey("DbType.Vastbase")==true;
|
var isVast = this.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel==DbType.Vastbase;
|
||||||
var dbcompatibility = "";
|
var dbcompatibility = "";
|
||||||
if (isVast)
|
if (isVast)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user