[#7429] Flawed Custom Logging ExecuteListener example in the manual
This commit is contained in:
parent
f806a0c447
commit
2c8209a013
@ -7449,11 +7449,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(factory.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -8874,11 +8874,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -9463,11 +9463,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13636,11 +13636,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13859,11 +13859,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13883,11 +13883,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -9845,11 +9845,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -10678,11 +10678,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -11833,11 +11833,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -12267,11 +12267,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -12667,11 +12667,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13069,11 +13069,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13293,11 +13293,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
@ -13457,11 +13457,6 @@ public class PrettyPrinter extends DefaultExecuteListener {
|
||||
else if (ctx.routine() != null) {
|
||||
System.out.println(create.renderInlined(ctx.routine()));
|
||||
}
|
||||
|
||||
// If we're executing anything else (e.g. plain SQL)
|
||||
else if (!StringUtils.isBlank(ctx.sql())) {
|
||||
System.out.println(ctx.sql());
|
||||
}
|
||||
}
|
||||
}]]></java><html>
|
||||
<p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user