From 9c93ab45fd2f0a211fd3c4cb41e69473489c34be Mon Sep 17 00:00:00 2001 From: lukaseder Date: Wed, 21 Oct 2015 12:28:49 +0200 Subject: [PATCH] [#4686] Incomplete overloading of SelectJoinStep.straightJoin() --- .../main/java/org/jooq/SelectJoinStep.java | 30 +++++++++++++++++++ .../main/java/org/jooq/impl/SelectImpl.java | 10 +++++++ 2 files changed, 40 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/SelectJoinStep.java b/jOOQ/src/main/java/org/jooq/SelectJoinStep.java index 161fd8a55e..24e9896090 100644 --- a/jOOQ/src/main/java/org/jooq/SelectJoinStep.java +++ b/jOOQ/src/main/java/org/jooq/SelectJoinStep.java @@ -1547,6 +1547,36 @@ public interface SelectJoinStep extends SelectWhereStep { @Support({ MYSQL }) SelectOnStep straightJoin(TableLike table); + /** + * STRAIGHT_JOIN a table to this table. + *

+ * NOTE: When inserting plain SQL into jOOQ objects, you must + * guarantee syntax integrity. You may also create the possibility of + * malicious SQL injection. Be sure to properly use bind variables and/or + * escape literals when concatenated into SQL clauses! + * + * @see DSL#table(SQL) + * @see Table#straightJoin(SQL) + */ + @Support({ MYSQL }) + @PlainSQL + SelectOnStep straightJoin(SQL sql); + + /** + * STRAIGHT_JOIN a table to this table. + *

+ * NOTE: When inserting plain SQL into jOOQ objects, you must + * guarantee syntax integrity. You may also create the possibility of + * malicious SQL injection. Be sure to properly use bind variables and/or + * escape literals when concatenated into SQL clauses! + * + * @see DSL#table(String) + * @see Table#straightJoin(String) + */ + @Support({ MYSQL }) + @PlainSQL + SelectOnStep straightJoin(String sql); + /** * STRAIGHT_JOIN a table to this table. *

diff --git a/jOOQ/src/main/java/org/jooq/impl/SelectImpl.java b/jOOQ/src/main/java/org/jooq/impl/SelectImpl.java index d335818793..8b1b20ddca 100644 --- a/jOOQ/src/main/java/org/jooq/impl/SelectImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/SelectImpl.java @@ -2572,6 +2572,16 @@ class SelectImpl