[#561] Various fixes

This commit is contained in:
Lukas Eder 2014-08-04 17:23:46 +02:00
parent f7dda4d595
commit b2b5118fbf
6 changed files with 13 additions and 11 deletions

View File

@ -44,7 +44,10 @@ import static java.util.Arrays.asList;
// ...
import static org.jooq.SQLDialect.H2;
// ...
// ...
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.SQLDialect.SQLITE;
// ...
import static org.jooq.conf.ParamType.INLINED;
import static org.jooq.impl.DSL.field;
import static org.jooq.impl.DSL.selectOne;
@ -428,17 +431,7 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
}
public void testFetchMany() throws Exception {
switch (dialect().family()) {
/* [pro] xx
xxxx xxxxxxx
xxxx xxxxxxx
xxxx xxxxxxx
xx [/pro] */
case SQLITE:
log.info("SKIPPING", "Fetch Many tests");
return;
}
assumeFamilyNotIn(SQLITE);
List<Result<Record>> results = create().fetchMany(
"select * from t_book order by " + TBook_ID().getName());

View File

@ -229,6 +229,7 @@ abstract class AbstractStoreQuery<R extends Record> extends AbstractQuery implem
// [#1260] TODO CUBRID supports this, but there's a JDBC bug
/* [pro] xx
xxxx xxxx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxx xxxxxxxxxx
xx [/pro] */
@ -332,6 +333,7 @@ abstract class AbstractStoreQuery<R extends Record> extends AbstractQuery implem
// [#1260] TODO CUBRID supports this, but there's a JDBC bug
/* [pro] xx
xxxx xxxx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxx xxxxxxxxxx
xx [/pro] */

View File

@ -217,6 +217,7 @@ class AlterTableImpl extends AbstractQuery implements
switch (family) {
/* [pro] xx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
xxxxxx

View File

@ -80,6 +80,10 @@ class Concat extends AbstractFunction<String> {
System.arraycopy(cast, 1, others, 0, others.length);
switch (configuration.dialect().family()) {
/* [pro] xx
xxxx xxxxxxxxx
xx [/pro] */
case MARIADB:
case MYSQL:
return function("concat", SQLDataType.VARCHAR, cast);

View File

@ -68,6 +68,7 @@ class CurrentUser extends AbstractFunction<String> {
xxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx
xxxx xxxx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx

View File

@ -99,6 +99,7 @@ class Values<R extends Record> extends AbstractTable<R> {
// for those dialects that do not support a VALUES() constructor
/* [pro] xx
xxxx xxxxxxx
xxxx xxxxxxxxx
xxxx xxxxxxx
xxxx xxxxxxx
xxxx xxxxxxx