yumeng 1 day ago
parent
commit
85c82ae32c

+ 1 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/impl/SafeTiFlashInterceptor.java

@@ -48,7 +48,7 @@ public class SafeTiFlashInterceptor implements Interceptor {
                     connection = getRealConnection(connection);
                     connection = getRealConnection(connection);
 
 
                     try (Statement stmt = connection.createStatement()) {
                     try (Statement stmt = connection.createStatement()) {
-                        stmt.execute("SET session tidb_isolation_read_engines = 'tiflash,tidb'");
+                        stmt.execute("SET session tidb_isolation_read_engines = 'tiflash,tidb,tikv'");
                         System.out.println("✅ TiFlash引擎设置成功");
                         System.out.println("✅ TiFlash引擎设置成功");
                     }
                     }
                 }
                 }