Skip to content

Commit

Permalink
[jOOQ#561] Add support for the Informix database - Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Jul 30, 2014
1 parent c0dcc1b commit 5407d8a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jOOQ-scala/src/test/scala/org/jooq/scala/example/Test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,22 @@ object Test {

println("first name : " + tuple._1);
println("last name : " + tuple._2);

val predicate =
if (1 == 1)
"AND a.id = 1"
else
""

// Plain SQL
println(f fetch (
s"""
SELECT a.first_name, a.last_name, b.title
FROM t_author a
JOIN t_book b ON a.id = b.author_id
WHERE 1 = 1 $predicate
ORDER BY a.id, b.id
""")
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ public void testLikeRegex() throws Exception {
xxxx xxxxxxx
xxxx xxxx
xxxx xxxx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxx xxxxxxxxxx
xx [/pro] */
Expand Down
1 change: 1 addition & 0 deletions jOOQ/src/main/java/org/jooq/impl/Alias.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.HSQLDB;
// ...
// ...
import static org.jooq.SQLDialect.MARIADB;
import static org.jooq.SQLDialect.MYSQL;
// ...
Expand Down

0 comments on commit 5407d8a

Please sign in to comment.