mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Merge pull request #1729 from DevFactory/staging/Conditions-should-not-unconditionally-evaluate-to-TRUE-or-to-FALSE-fix-1
Conditions should not unconditionally evaluate to "TRUE" or to "FALSE"
This commit is contained in:
commit
175b2668ba
@ -51,9 +51,9 @@ public enum VisitorConfig {
|
||||
public static VisitorConfig get(boolean fields, boolean methods, VisitorConfig defaultConfig) {
|
||||
if (fields && methods) {
|
||||
return VisitorConfig.ALL;
|
||||
} else if (fields && !methods) {
|
||||
} else if (fields) {
|
||||
return VisitorConfig.FIELDS_ONLY;
|
||||
} else if (methods && !fields) {
|
||||
} else if (methods) {
|
||||
return VisitorConfig.METHODS_ONLY;
|
||||
} else {
|
||||
return defaultConfig;
|
||||
|
||||
@ -124,7 +124,7 @@ public class SetQueryBandClause extends AbstractSQLClause<SetQueryBandClause> {
|
||||
+ (forSession ? "' for session" : "' for transaction");
|
||||
parameter = null;
|
||||
} else {
|
||||
queryString = "set query_band=?" + (forSession ? " for session" : " for transaction");
|
||||
queryString = "set query_band=? for transaction";
|
||||
parameter = builder.toString();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user