mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
Update pgsql
This commit is contained in:
parent
34c774b5fb
commit
6eb1f16a1f
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Npgsql.TypeHandlers.DateTimeHandlers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -252,8 +253,19 @@ namespace SqlSugar
|
||||
#region Methods
|
||||
public override List<string> GetDbTypes()
|
||||
{
|
||||
return this.Context.Ado.SqlQuery<string>(@"SELECT DISTINCT data_type
|
||||
var result = this.Context.Ado.SqlQuery<string>(@"SELECT DISTINCT data_type
|
||||
FROM information_schema.columns");
|
||||
result.Add("varchar");
|
||||
result.Add("timestamp");
|
||||
result.Add("uuid");
|
||||
result.Add("int2");
|
||||
result.Add("int4");
|
||||
result.Add("int8");
|
||||
result.Add("time");
|
||||
result.Add("date");
|
||||
result.Add("float8");
|
||||
result.Add("float4");
|
||||
return result;
|
||||
}
|
||||
public override List<string> GetTriggerNames(string tableName)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user