From d89edbcb168181f34a52621b969de954e46730d0 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 21 Mar 2023 22:41:47 +0800 Subject: [PATCH] Synchronization code --- .../PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs index 65effca95..d4aa6f0d6 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/PostgreSQL/DbMaintenance/PostgreSQLDbMaintenance.cs @@ -46,7 +46,7 @@ namespace SqlSugar inner join pg_type on pg_type.oid = pg_attribute.atttypid where pg_constraint.contype='p' ) pkey on pcolumn.table_name = pkey.relname - order by ptables.tablename"; + order by table_catalog, table_schema, ordinal_position"; return sql; } }