diff --git a/jOOQ-test/src/test/java/org/jooq/test/MySQLTest.java b/jOOQ-test/src/test/java/org/jooq/test/MySQLTest.java
index 67cc5969cc..db140a9ed4 100644
--- a/jOOQ-test/src/test/java/org/jooq/test/MySQLTest.java
+++ b/jOOQ-test/src/test/java/org/jooq/test/MySQLTest.java
@@ -63,6 +63,7 @@ import static org.jooq.util.mysql.MySQLDSL.sha1;
import static org.jooq.util.mysql.MySQLDSL.sha2;
import static org.jooq.util.mysql.MySQLDSL.uncompress;
import static org.jooq.util.mysql.MySQLDSL.uncompressedLength;
+import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
@@ -843,12 +844,12 @@ public class MySQLTest extends jOOQAbstractTest<
assertNotNull(create().select(password(MESSAGE)).fetchOne(0));
assertNotNull(create().select(sha1(MESSAGE)).fetchOne(0));
assertNotNull(create().select(sha2(MESSAGE, 256)).fetchOne(0));
- assertEquals(MESSAGE, create().select(decode(encode(MESSAGE, SECRET), val(SECRET))).fetchOne(0));
- assertEquals(MESSAGE, create().select(aesDecrypt(aesEncrypt(MESSAGE, SECRET), val(SECRET))).fetchOne(0));
- assertEquals(MESSAGE, create().select(desDecrypt(desEncrypt(MESSAGE, SECRET), val(SECRET))).fetchOne(0));
- assertEquals(MESSAGE, create().select(desDecrypt(desEncrypt(MESSAGE))).fetchOne(0));
- assertEquals(MESSAGE, create().select(uncompress(compress(MESSAGE))).fetchOne(0));
- assertEquals(3, create().select(uncompressedLength(compress(MESSAGE))).fetchOne(0));
+ assertArrayEquals(MESSAGE, create().select(decode(encode(MESSAGE, SECRET), val(SECRET))).fetchOne().value1());
+ assertArrayEquals(MESSAGE, create().select(aesDecrypt(aesEncrypt(MESSAGE, SECRET), val(SECRET))).fetchOne().value1());
+ assertArrayEquals(MESSAGE, create().select(desDecrypt(desEncrypt(MESSAGE, SECRET), val(SECRET))).fetchOne().value1());
+ assertArrayEquals(MESSAGE, create().select(desDecrypt(desEncrypt(MESSAGE))).fetchOne().value1());
+ assertArrayEquals(MESSAGE, create().select(uncompress(compress(MESSAGE))).fetchOne().value1());
+ assertEquals(5, create().select(uncompressedLength(compress(MESSAGE))).fetchOne(0));
}
@Test
diff --git a/jOOQ/src/main/java/org/jooq/util/mysql/MySQLDSL.java b/jOOQ/src/main/java/org/jooq/util/mysql/MySQLDSL.java
index fdd56e281e..e3e84c425e 100644
--- a/jOOQ/src/main/java/org/jooq/util/mysql/MySQLDSL.java
+++ b/jOOQ/src/main/java/org/jooq/util/mysql/MySQLDSL.java
@@ -44,7 +44,6 @@ import org.jooq.EnumType;
import org.jooq.Field;
import org.jooq.SQLDialect;
import org.jooq.impl.DSL;
-import static org.jooq.impl.DSL.val;
/**
* The {@link SQLDialect#MYSQL} specific DSL.
@@ -64,7 +63,7 @@ public class MySQLDSL extends DSL {
// -------------------------------------------------------------------------
/**
- * Get the MySQL-specific DECODE() function
+ * Get the MySQL-specific DECODE() function.
*
* Don't mix this up with the various {@link DSL#decode()} methods!
*/
@@ -73,7 +72,7 @@ public class MySQLDSL extends DSL {
}
/**
- * Get the MySQL-specific DECODE() function
+ * Get the MySQL-specific DECODE() function.
*
* Don't mix this up with the various {@link DSL#decode()} methods!
*/
@@ -82,7 +81,7 @@ public class MySQLDSL extends DSL {
}
/**
- * Get the MySQL-specific DECODE() function
+ * Get the MySQL-specific DECODE() function.
*
* Don't mix this up with the various {@link DSL#decode()} methods!
*/
@@ -91,274 +90,273 @@ public class MySQLDSL extends DSL {
}
/**
- * Get the MySQL-specific ENCODE() function
+ * Get the MySQL-specific ENCODE() function.
*/
public static FieldENCODE() function
+ * Get the MySQL-specific ENCODE() function.
*/
public static FieldENCODE() function
+ * Get the MySQL-specific ENCODE() function.
*/
public static AES_DECRYPT() function
+ * Get the MySQL-specific AES_DECRYPT() function.
*/
public static FieldAES_DECRYPT() function
+ * Get the MySQL-specific AES_DECRYPT() function.
*/
public static FieldAES_DECRYPT() function
+ * Get the MySQL-specific AES_DECRYPT() function.
*/
public static AES_ENCRYPT() function
+ * Get the MySQL-specific AES_ENCRYPT() function.
*/
public static FieldAES_ENCRYPT() function
+ * Get the MySQL-specific AES_ENCRYPT() function.
*/
public static FieldAES_ENCRYPT() function
+ * Get the MySQL-specific AES_ENCRYPT() function.
*/
public static DES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static FieldDES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static FieldDES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static DES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static FieldDES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static FieldDES_DECRYPT() function
+ * Get the MySQL-specific DES_DECRYPT() function.
*/
public static DES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static FieldDES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static FieldDES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static DES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static FieldDES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static FieldDES_ENCRYPT() function
+ * Get the MySQL-specific DES_ENCRYPT() function.
*/
public static COMPRESS() function
+ * Get the MySQL-specific COMPRESS() function.
*/
public static FieldCOMPRESS() function
+ * Get the MySQL-specific COMPRESS() function.
*/
public static FieldCOMPRESS() function
+ * Get the MySQL-specific COMPRESS() function.
*/
public static UNCOMPRESS() function
+ * Get the MySQL-specific UNCOMPRESS() function.
*/
public static FieldUNCOMPRESS() function
+ * Get the MySQL-specific UNCOMPRESS() function.
*/
public static FieldUNCOMPRESS() function
+ * Get the MySQL-specific UNCOMPRESS() function.
*/
public static UNCOMPRESSED_LENGTH() function
+ * Get the MySQL-specific UNCOMPRESSED_LENGTH() function.
*/
public static FieldUNCOMPRESSED_LENGTH() function
+ * Get the MySQL-specific UNCOMPRESSED_LENGTH() function.
*/
public static FieldUNCOMPRESSED_LENGTH() function
+ * Get the MySQL-specific UNCOMPRESSED_LENGTH() function.
*/
public static SHA1() function
+ * Get the MySQL-specific SHA1() function.
*/
public static FieldSHA1() function
+ * Get the MySQL-specific SHA1() function.
*/
public static FieldSHA1() function
+ * Get the MySQL-specific SHA1() function.
*/
public static SHA2() function
+ * Get the MySQL-specific SHA2() function.
*/
public static FieldSHA2() function
+ * Get the MySQL-specific SHA2() function.
*/
public static FieldSHA2() function
+ * Get the MySQL-specific SHA2() function.
*/
public static PASSWORD() function
+ * Get the MySQL-specific PASSWORD() function.
*/
public static FieldPASSWORD() function
+ * Get the MySQL-specific PASSWORD() function.
*/
public static FieldPASSWORD() function
+ * Get the MySQL-specific PASSWORD() function.
*/
public static