@@ -49,7 +49,7 @@ public class PlainSelect extends ASTNodeAccessImpl implements SelectBody {
4949 private boolean useBrackets = false ;
5050 private Wait wait ;
5151 private boolean mySqlSqlCalcFoundRows = false ;
52- private boolean sqlNoCacheFlag = false ;
52+ private MySqlSqlCacheFlags mySqlCacheFlag = null ;
5353 private String forXmlPath ;
5454 private KSQLWindow ksqlWindow = null ;
5555 private boolean noWait = false ;
@@ -361,8 +361,8 @@ public String toString() {
361361 if (top != null ) {
362362 sql .append (top ).append (" " );
363363 }
364- if (sqlNoCacheFlag ) {
365- sql .append ("SQL_NO_CACHE" ).append (" " );
364+ if (mySqlCacheFlag != null ) {
365+ sql .append (mySqlCacheFlag . name () ).append (" " );
366366 }
367367 if (mySqlSqlCalcFoundRows ) {
368368 sql .append ("SQL_CALC_FOUND_ROWS" ).append (" " );
@@ -544,25 +544,25 @@ public PlainSelect withMySqlSqlCalcFoundRows(boolean mySqlCalcFoundRows) {
544544 return this ;
545545 }
546546
547- public PlainSelect withMySqlSqlNoCache (boolean sqlNoCacheFlagSet ) {
548- this .setMySqlSqlNoCache ( sqlNoCacheFlagSet );
547+ public PlainSelect withMySqlSqlNoCache (MySqlSqlCacheFlags mySqlCacheFlag ) {
548+ this .setMySqlSqlCacheFlag ( mySqlCacheFlag );
549549 return this ;
550550 }
551551
552552 public void setMySqlSqlCalcFoundRows (boolean mySqlCalcFoundRows ) {
553553 this .mySqlSqlCalcFoundRows = mySqlCalcFoundRows ;
554554 }
555555
556- public void setMySqlSqlNoCache ( boolean sqlNoCacheFlagSet ) {
557- this .sqlNoCacheFlag = sqlNoCacheFlagSet ;
556+ public void setMySqlSqlCacheFlag ( MySqlSqlCacheFlags sqlCacheFlag ) {
557+ this .mySqlCacheFlag = sqlCacheFlag ;
558558 }
559559
560560 public boolean getMySqlSqlCalcFoundRows () {
561561 return this .mySqlSqlCalcFoundRows ;
562562 }
563563
564- public boolean getMySqlSqlNoCache () {
565- return this .sqlNoCacheFlag ;
564+ public MySqlSqlCacheFlags getMySqlSqlCacheFlag () {
565+ return this .mySqlCacheFlag ;
566566 }
567567
568568 public void setNoWait (boolean noWait ) {
0 commit comments