Skip to content

Commit 52641d7

Browse files
Clare Zheng (Shanghai Wicresoft Co Ltd)Clare Zheng (Shanghai Wicresoft Co Ltd)
authored andcommitted
Update details
1 parent 92f484e commit 52641d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/data-factory/connector-mysql.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ When copying data from MySQL, the following mappings are used from MySQL data ty
312312
| `year` |`Int` |`Int` |
313313

314314
>[!NOTE]
315-
>Storing bit(1) as Boolean in the legacy version was a bug and it was fixed in the recommended version. If you still have Boolean value in the recommended version, use tinybit(1) data type.
315+
>Storing bit(1) as Boolean in the legacy version was improved in the recommended version. If you still want to have Boolean value by using the recommended version, use tinybit(1) data type.
316316
317317
## Lookup activity properties
318318

@@ -328,7 +328,7 @@ Here are steps that help you upgrade your MySQL connector:
328328

329329
1. The latest driver version v2 supports more MySQL versions. For more information, see [Supported capabilities](connector-mysql.md#supported-capabilities).
330330

331-
### MySQL best practices
331+
### Best practices for MySQL connector recommended version
332332

333333
This section introduces some best practices for MySQL connector recommended version.
334334

@@ -344,13 +344,13 @@ The reason for these issues is the recommended version cannot decrypt the PCKS#8
344344

345345
The recommended version treats tinyint(1) as Boolean type by default, which is by design. For more information, see this [article](https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html).
346346

347-
To return tiny as numeric, set `treatTinyAsBoolean=false` in the connection properties.
347+
To let the connector return tiny as numeric, set `treatTinyAsBoolean=false` in the connection properties.
348348

349349
#### Treat char(36) as GUID
350350

351351
The recommended version will treat Char(36) as GUID type by default for better performance.
352352

353-
The connector treats Char(36) fields as GUIDs for easier database handling. This treatment simplifies operations like inserting, updating, and retrieving GUID values, ensuring they are consistently managed as GUID objects instead of plain strings. This behavior is particularly useful in scenarios where GUIDs are used as primary keys or unique identifiers, providing better performance.
353+
The connector treats Char(36) fields as GUIDs for easier database handling. This treatment simplifies operations such as inserting, updating, and retrieving GUID values, ensuring they are consistently managed as GUID objects in the application code instead of plain strings. This behavior is particularly useful in scenarios where GUIDs are used as primary keys or unique identifiers and provides better performance.
354354

355355
You can also change this behavior by setting `guidFromat=none` in connection property.
356356

@@ -360,9 +360,9 @@ The recommended version cannot read zero or invalid date value. It is by default
360360

361361
MySQL permits you to store a "zero" value of '0000-00-00' as a "dummy date." In some cases, this is more convenient than using NULL values, and uses less data and index space. To disallow '0000-00-00', enable the [NO_ZERO_DATE](https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sqlmode_no_zero_date) mode. For more information, see this [article](https://dev.mysql.com/doc/refman/8.4/en/date-and-time-types.html).
362362

363-
To allow zero date value, you can set `convertZeroDateTime=true` and `allowZeroDateTime=true`.
363+
For zero date value, you can set `convertZeroDateTime=true` and `allowZeroDateTime=true`.
364364

365-
To allow an invalid date value, you can modify your SQL to wrap the column as String type.
365+
For invalid date value, you can modify your SQL to wrap the column as String type.
366366

367367
## Differences between the recommended and the legacy driver version
368368

0 commit comments

Comments
 (0)