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: articles/data-factory/connector-mysql.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ When copying data from MySQL, the following mappings are used from MySQL data ty
312
312
|`year`|`Int`|`Int`|
313
313
314
314
>[!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.
316
316
317
317
## Lookup activity properties
318
318
@@ -328,7 +328,7 @@ Here are steps that help you upgrade your MySQL connector:
328
328
329
329
1. The latest driver version v2 supports more MySQL versions. For more information, see [Supported capabilities](connector-mysql.md#supported-capabilities).
330
330
331
-
### MySQL best practices
331
+
### Best practices for MySQL connector recommended version
332
332
333
333
This section introduces some best practices for MySQL connector recommended version.
334
334
@@ -344,13 +344,13 @@ The reason for these issues is the recommended version cannot decrypt the PCKS#8
344
344
345
345
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).
346
346
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.
348
348
349
349
#### Treat char(36) as GUID
350
350
351
351
The recommended version will treat Char(36) as GUID type by default for better performance.
352
352
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.
354
354
355
355
You can also change this behavior by setting `guidFromat=none` in connection property.
356
356
@@ -360,9 +360,9 @@ The recommended version cannot read zero or invalid date value. It is by default
360
360
361
361
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).
362
362
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`.
364
364
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.
366
366
367
367
## Differences between the recommended and the legacy driver version
0 commit comments