parent
0c77b184ae
commit
f5776b2e41
@ -14,19 +14,19 @@ import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
/**
|
||||
* <p>Java class for QuoteEscaping.
|
||||
*
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
* <p>
|
||||
* <pre>
|
||||
* <simpleType name="QuoteEscaping">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="DEFAULT"/>
|
||||
* <enumeration value="QUOTE"/>
|
||||
* <enumeration value="ESCAPE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* <simpleType name="QuoteEscaping">
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="DEFAULT"/>
|
||||
* <enumeration value="QUOTE"/>
|
||||
* <enumeration value="BACKSLASH"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlType(name = "QuoteEscaping")
|
||||
@XmlEnum
|
||||
|
||||
@ -351,7 +351,7 @@ public class Settings
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether string literals should be escaped with backslash.
|
||||
* Whether quotes in strings literals should be escaped with quote repeating or backslash.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
@ -1279,6 +1279,11 @@ public class Settings
|
||||
sb.append(backslashEscaping);
|
||||
sb.append("</backslashEscaping>");
|
||||
}
|
||||
if (quoteEscaping!= null) {
|
||||
sb.append("<quoteEscaping>");
|
||||
sb.append(quoteEscaping);
|
||||
sb.append("</quoteEscaping>");
|
||||
}
|
||||
if (paramType!= null) {
|
||||
sb.append("<paramType>");
|
||||
sb.append(paramType);
|
||||
@ -1510,6 +1515,15 @@ public class Settings
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (quoteEscaping == null) {
|
||||
if (other.quoteEscaping!= null) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!quoteEscaping.equals(other.quoteEscaping)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (paramType == null) {
|
||||
if (other.paramType!= null) {
|
||||
return false;
|
||||
@ -1769,6 +1783,7 @@ public class Settings
|
||||
result = ((prime*result)+((renderFormatting == null)? 0 :renderFormatting.hashCode()));
|
||||
result = ((prime*result)+((renderScalarSubqueriesForStoredFunctions == null)? 0 :renderScalarSubqueriesForStoredFunctions.hashCode()));
|
||||
result = ((prime*result)+((backslashEscaping == null)? 0 :backslashEscaping.hashCode()));
|
||||
result = ((prime*result)+((quoteEscaping == null)? 0 :quoteEscaping.hashCode()));
|
||||
result = ((prime*result)+((paramType == null)? 0 :paramType.hashCode()));
|
||||
result = ((prime*result)+((paramCastMode == null)? 0 :paramCastMode.hashCode()));
|
||||
result = ((prime*result)+((statementType == null)? 0 :statementType.hashCode()));
|
||||
|
||||
@ -1799,6 +1799,8 @@ final class Tools {
|
||||
|
||||
// [#3630] Depending on this setting, we need to consider backslashes as escape characters within string literals.
|
||||
boolean needsBackslashEscaping = needsBackslashEscaping(ctx.configuration());
|
||||
|
||||
// [#5873] [#7314] This setting governs how quotes are escaped within string literals
|
||||
boolean quotesNeedsBackslashEscaping = quotesNeedsBackslashEscaping(ctx.configuration());
|
||||
|
||||
characterLoop:
|
||||
|
||||
@ -488,4 +488,4 @@ Either <input/> or <inputExpression/> must be provided]]></jxb:javadoc></j
|
||||
<enumeration value="THROW_ON_FAILURE"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
</schema>
|
||||
</schema>
|
||||
Loading…
Reference in New Issue
Block a user