[jOOQ/jOOQ#8715] Add support for the LOG10 function
This commit is contained in:
parent
ffddea1aa6
commit
13731641d9
@ -15340,6 +15340,24 @@ public class DSL {
|
||||
return new Log(value, base);
|
||||
}
|
||||
|
||||
/**
|
||||
* The <code>LOG10</code> function.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static Field<BigDecimal> log10(Number value) {
|
||||
return new Log10(Tools.field(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* The <code>LOG10</code> function.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static Field<BigDecimal> log10(Field<? extends Number> value) {
|
||||
return new Log10(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* The <code>LOWER</code> function.
|
||||
* <p>
|
||||
|
||||
@ -182,6 +182,7 @@ final class Names {
|
||||
static final Name N_LN = unquotedName("ln");
|
||||
static final Name N_LOCATE = unquotedName("locate");
|
||||
static final Name N_LOG = unquotedName("log");
|
||||
static final Name N_LOG10 = unquotedName("log10");
|
||||
static final Name N_LOGN = unquotedName("logn");
|
||||
static final Name N_LOWER = unquotedName("lower");
|
||||
static final Name N_LPAD = unquotedName("lpad");
|
||||
|
||||
@ -175,6 +175,7 @@ import static org.jooq.impl.DSL.list;
|
||||
import static org.jooq.impl.DSL.listAgg;
|
||||
import static org.jooq.impl.DSL.ln;
|
||||
import static org.jooq.impl.DSL.log;
|
||||
import static org.jooq.impl.DSL.log10;
|
||||
// ...
|
||||
import static org.jooq.impl.DSL.lower;
|
||||
import static org.jooq.impl.DSL.lpad;
|
||||
@ -6908,6 +6909,8 @@ final class ParserContext {
|
||||
return length((Field) parseFieldParenthesised(S));
|
||||
else if (parseFunctionNameIf("LN"))
|
||||
return ln((Field) parseFieldNumericOpParenthesised());
|
||||
else if (parseFunctionNameIf("LOG10"))
|
||||
return log10((Field) parseFieldNumericOpParenthesised());
|
||||
else if ((field = parseFieldLogIf()) != null)
|
||||
return field;
|
||||
else if (parseKeywordIf("LEVEL") && requireProEdition()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user