提交 205a3901 authored 作者: Thomas Mueller's avatar Thomas Mueller

The following prepared statements are now cached as well: insert, update,…

The following prepared statements are now cached as well: insert, update, delete, merge, and transactional commands.
上级 8b27f983
......@@ -146,4 +146,8 @@ public class Delete extends Prepared {
this.limitExpr = limit;
}
public boolean isCacheable() {
return true;
}
}
......@@ -265,4 +265,8 @@ public class Insert extends Prepared implements ResultTarget {
this.insertFromSelect = value;
}
public boolean isCacheable() {
return true;
}
}
......@@ -277,4 +277,8 @@ public class Merge extends Prepared {
return CommandInterface.MERGE;
}
public boolean isCacheable() {
return true;
}
}
......@@ -136,4 +136,8 @@ public class TransactionCommand extends Prepared {
return type;
}
public boolean isCacheable() {
return true;
}
}
......@@ -185,4 +185,8 @@ public class Update extends Prepared {
return CommandInterface.UPDATE;
}
public boolean isCacheable() {
return true;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论