diff --git a/jOOQ-website/src/main/resources/manual-3.0.xml b/jOOQ-website/src/main/resources/manual-3.0.xml index d5ea427a38..50db7b7d04 100644 --- a/jOOQ-website/src/main/resources/manual-3.0.xml +++ b/jOOQ-website/src/main/resources/manual-3.0.xml @@ -9684,12 +9684,12 @@ Result result = create.selectFrom(BOOK).where(BOOK.ID.equal(5)).fetc String sql = ctx.sql(); // Exceptions are propagated through the JDBC and jOOQ APIs - if (sql.toLowerCase().startsWith("DROP")) { + if (sql.toUpperCase().startsWith("DROP")) { throw new SQLException("Statement not supported: " + sql); } // You decide, whether any given statement returns results, and how many - else if (sql.toLowerCase().startsWith("SELECT")) { + else if (sql.toUpperCase().startsWith("SELECT")) { // Always return one author record Result result = create.newResult(AUTHOR); diff --git a/jOOQ-website/src/main/resources/manual-3.1.xml b/jOOQ-website/src/main/resources/manual-3.1.xml index 452e58e79a..aeef05a66f 100644 --- a/jOOQ-website/src/main/resources/manual-3.1.xml +++ b/jOOQ-website/src/main/resources/manual-3.1.xml @@ -10073,12 +10073,12 @@ Result result = create.selectFrom(BOOK).where(BOOK.ID.equal(5)).fetc String sql = ctx.sql(); // Exceptions are propagated through the JDBC and jOOQ APIs - if (sql.toLowerCase().startsWith("DROP")) { + if (sql.toUpperCase().startsWith("DROP")) { throw new SQLException("Statement not supported: " + sql); } // You decide, whether any given statement returns results, and how many - else if (sql.toLowerCase().startsWith("SELECT")) { + else if (sql.toUpperCase().startsWith("SELECT")) { // Always return one author record Result result = create.newResult(AUTHOR); diff --git a/jOOQ-website/src/main/resources/manual-3.2.xml b/jOOQ-website/src/main/resources/manual-3.2.xml index ba63dade2b..29b6a80e15 100644 --- a/jOOQ-website/src/main/resources/manual-3.2.xml +++ b/jOOQ-website/src/main/resources/manual-3.2.xml @@ -10095,12 +10095,12 @@ Result result = create.selectFrom(BOOK).where(BOOK.ID.equal(5)).fetc String sql = ctx.sql(); // Exceptions are propagated through the JDBC and jOOQ APIs - if (sql.toLowerCase().startsWith("DROP")) { + if (sql.toUpperCase().startsWith("DROP")) { throw new SQLException("Statement not supported: " + sql); } // You decide, whether any given statement returns results, and how many - else if (sql.toLowerCase().startsWith("SELECT")) { + else if (sql.toUpperCase().startsWith("SELECT")) { // Always return one author record Result result = create.newResult(AUTHOR);