You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/changes/changes_3.6.0.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Code name: Fix CVE-2024-7254 in test dependency `com.google.protobuf:protobuf-ja
6
6
7
7
This release fixes CVE-2024-7254 in test dependency `com.google.protobuf:protobuf-java:3.25.1`.
8
8
9
-
The release also speeds up inserting rows into a table by using batch insert.
9
+
The release also speeds up inserting rows into a table by using batch insert and allows specifying a charset when creating MySQL tables, see the [user guide](../user_guide/user_guide.md#mysql-specific-database-objects) for details.
10
10
11
11
## Security
12
12
@@ -15,6 +15,7 @@ The release also speeds up inserting rows into a table by using batch insert.
15
15
## Features
16
16
17
17
*#137: Updated `AbstractImmediateDatabaseObjectWriter#write()` to use batching for inserting rows
18
+
*#134: Allowed specifying charset for MySQL tables
Copy file name to clipboardExpand all lines: doc/user_guide/user_guide.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ final Table table = schema.createTable("DAYS","DAY_NAME","VARCHAR(9), "SHORT_NAM
62
62
In case you want to create more complex tables, you can also use a builder.
63
63
64
64
```java
65
-
final Table table=schema.createTableBuilder("DAYS")
65
+
final Table table = schema.createTableBuilder("DAYS")
66
66
.column("DAY_NAME","VARCHAR(9)"
67
67
.column("SHORT_NAME","VARCHAR(3)"
68
68
.column("DAY_IN_WEEK","DECIMAL(1,0)"
@@ -390,6 +390,17 @@ Given that a script of that name exists, you can then [execute the script](#exec
390
390
391
391
## MySQL-SpecificDatabaseObjects
392
392
393
-
So far there are no MySQLSpecificDatabaseObjects that are not described in [Dialect-AgnosticDatabaseObjects](#dialect-agnostic-database-objects) section.
393
+
In addition to [Dialect-AgnosticDatabaseObjects](#dialect-agnostic-database-objects), MySQL allows specifying a charset when creating a new table using the table builder of a `MySqlSchema`. When no charset is specified, MySql uses UTF8 as default.
394
+
395
+
```java
396
+
final MySqlSchema schema = (MySqlSchema) factory.createSchema("TEST"));
Please keep in mind that Schema object represents a database in MySQL as a schema is a [synonym](https://dev.mysql.com/doc/refman/8.0/en/create-database.html) for a database in MySQL syntax.
0 commit comments