Skip to content

Commit 147fc39

Browse files
committed
Document supporting ByteBuffer and ByteBuf as parameters in prepared statements
1 parent ab4ae3d commit 147fc39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysql-async/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ java.sql.Timestamp | timestamp
8989
java.sql.Time | time
9090
String | string
9191
Array[Byte] | blob
92+
java.nio.ByteBuffer | blob
93+
io.netty.buffer.ByteBuf | blob
9294

9395
You don't have to match exact values when sending parameters for your prepared statements, MySQL is usually smart
9496
enough to understand that if you have sent an Int to `smallint` column it has to truncate the 4 bytes into 2.

0 commit comments

Comments
 (0)