mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Vastbase
This commit is contained in:
parent
de565535a2
commit
038cd245ec
@ -493,11 +493,9 @@ namespace SqlSugar
|
||||
break;
|
||||
case DbType.Vastbase:
|
||||
config.DbType = DbType.PostgreSQL;
|
||||
if (this.TempItems == null)
|
||||
{
|
||||
this.TempItems = new Dictionary<string, object>();
|
||||
}
|
||||
this.TempItems.Add("DbType.Vastbase", "DbType.Vastbase");
|
||||
if (this.CurrentConnectionConfig.MoreSettings==null)
|
||||
this.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings();
|
||||
this.CurrentConnectionConfig.MoreSettings.DatabaseModel = DbType.Vastbase;
|
||||
break;
|
||||
case DbType.OceanBase:
|
||||
config.DbType = DbType.MySql;
|
||||
|
@ -381,7 +381,7 @@ WHERE tgrelid = '"+tableName+"'::regclass");
|
||||
});
|
||||
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 = "";
|
||||
if (isVast)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user