From 06bde8c032970d52ee2f17c4594de83cd2c4040b Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Thu, 11 Jul 2013 00:39:38 +0200 Subject: [PATCH] [#2634] Minor documentation bug: The MockDataProvider uses toLowerCase() but upper-case SQL keywords --- jOOQ-website/src/main/resources/manual-3.0.xml | 4 ++-- jOOQ-website/src/main/resources/manual-3.1.xml | 4 ++-- jOOQ-website/src/main/resources/manual-3.2.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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);