[#4686] Incomplete overloading of SelectJoinStep.straightJoin()

This commit is contained in:
lukaseder 2015-10-21 12:28:49 +02:00
parent cb8b74a213
commit 9c93ab45fd
2 changed files with 40 additions and 0 deletions

View File

@ -1547,6 +1547,36 @@ public interface SelectJoinStep<R extends Record> extends SelectWhereStep<R> {
@Support({ MYSQL })
SelectOnStep<R> straightJoin(TableLike<?> table);
/**
* <code>STRAIGHT_JOIN</code> a table to this table.
* <p>
* <b>NOTE</b>: 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<R> straightJoin(SQL sql);
/**
* <code>STRAIGHT_JOIN</code> a table to this table.
* <p>
* <b>NOTE</b>: 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<R> straightJoin(String sql);
/**
* <code>STRAIGHT_JOIN</code> a table to this table.
* <p>

View File

@ -2572,6 +2572,16 @@ class SelectImpl<R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11,
xx [/pro] */
@Override
public final SelectImpl straightJoin(SQL sql) {
return straightJoin(table(sql));
}
@Override
public final SelectImpl straightJoin(String sql) {
return straightJoin(table(sql));
}
@Override
public final SelectImpl straightJoin(String sql, Object... bindings) {
return straightJoin(table(sql, bindings));