fix(shadow): ignore constraint metadata in permission probe

This commit is contained in:
zgw
2026-08-28 10:05:18 +08:00
parent 8d78f8563c
commit cf0a98247e

View File

@@ -69,7 +69,8 @@ public class SqlServerPermissionProbe {
+ "ON s.schema_id = o.schema_id CROSS APPLY "
+ "sys.fn_my_permissions(QUOTENAME(s.name) + N'.' "
+ "+ QUOTENAME(o.name), 'OBJECT') "
+ "WHERE o.is_ms_shipped = 0";
+ "WHERE o.is_ms_shipped = 0 "
+ "AND o.type NOT IN (N'C', N'D', N'F', N'PK', N'UQ')";
public PermissionCheckResult verifySource(Connection connection)
throws SQLException {