Skip to content

Commit d652886

Browse files
committed
Add IgnoreCommandTimeout to the table of differences.
1 parent 89e5b42 commit d652886

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,28 @@ MySqlConnector has some different default connection string options:
1919
<thead>
2020
<th style="width:20%">Option</th>
2121
<th style="width:20%">MySqlConnector</th>
22-
<th style="width:20%">Oracle's Connector/NET</th>
22+
<th style="width:20%">Oracles Connector/NET</th>
2323
<th style="width:40%">Notes</th>
2424
</thead>
2525
<tr>
2626
<td><code>AllowPublicKeyRetrieval</code></td>
2727
<td>Default is <code>false</code></td>
2828
<td>(not configurable)</td>
2929
<td>When using <code>sha256_password</code> authentication, this option allows the RSA public key to be retrieved from the server
30-
(when not using a secure connection). It's <code>false</code> by default to avoid disclosing the password to a malicious proxy.</td>
30+
(when not using a secure connection). Its <code>false</code> by default to avoid disclosing the password to a malicious proxy.</td>
3131
</tr>
3232
<tr>
3333
<td><code>ConnectionReset</code></td>
3434
<td>Default is <code>true</code></td>
3535
<td>Default is <code>false</code></td>
3636
<td>MySqlConnector always resets pooled connections by default so that the connection is in a known state. This fixes <a href="https://bugs.mysql.com/bug.php?id=77421">MySQL Bug 77421</a>.</td>
3737
</tr>
38+
<tr>
39+
<td><code>IgnoreCommandTransaction</code></td>
40+
<td>Default is <code>false</code></td>
41+
<td>(not configurable, effective default is <code>true</code>)</td>
42+
<td>See remarks under <a href="#mysqlcommand">MySqlCommand</a> below.</td>
43+
</tr>
3844
<tr>
3945
<td><code>LoadBalance</code></td>
4046
<td>Default is <code>RoundRobin</code></td>
@@ -45,7 +51,7 @@ MySqlConnector has some different default connection string options:
4551
<td><code>ServerRSAPublicKeyFile</code></td>
4652
<td>(no default)</td>
4753
<td>(not configurable)</td>
48-
<td>Specify a file containing the server's RSA public key to allow <code>sha256_password</code> authentication over an insecure connection.</td>
54+
<td>Specify a file containing the servers RSA public key to allow <code>sha256_password</code> authentication over an insecure connection.</td>
4955
</tr>
5056
<tr>
5157
<td><code>UseAffectedRows</code></td>
@@ -74,7 +80,8 @@ object to be created. See [#331](https://github.com/mysql-net/MySqlConnector/iss
7480

7581
Connector/NET allows a command to be executed even when `MySqlCommand.Transaction` references a commited, rolled back, or
7682
disposed `MySqlTransaction`. MySqlConnector will throw an `InvalidOperationException` if the `MySqlCommand.Transaction`
77-
property doesn't reference the active transaction. To disable this strict validation, set <code>IgnoreCommandTransaction=true</code>
83+
property doesn’t reference the active transaction. This fixes <a href="https://bugs.mysql.com/bug.php?id=88611">MySQL Bug 88611</a>.
84+
To disable this strict validation, set <code>IgnoreCommandTransaction=true</code>
7885
in the connection string. See [Issue 474](https://github.com/mysql-net/MySqlConnector/issues/474) for more details.
7986

8087
### Exceptions
@@ -87,14 +94,14 @@ for various precondition checks that indicate misuse of the API (and not a probl
8794
The following bugs in Connector/NET are fixed by switching to MySqlConnector.
8895

8996
* [#37283](https://bugs.mysql.com/bug.php?id=37283), [#70587](https://bugs.mysql.com/bug.php?id=70587): Distributed transactions are not supported
90-
* [#50773](https://bugs.mysql.com/bug.php?id=50773): Can't use multiple connections within one TransactionScope
97+
* [#50773](https://bugs.mysql.com/bug.php?id=50773): Cant use multiple connections within one TransactionScope
9198
* [#61477](https://bugs.mysql.com/bug.php?id=61477): `ColumnOrdinal` in schema table is 1-based
9299
* [#66476](https://bugs.mysql.com/bug.php?id=66476): Connection pool uses queue instead of stack
93100
* [#70111](https://bugs.mysql.com/bug.php?id=70111): `Async` methods execute synchronously
94101
* [#70686](https://bugs.mysql.com/bug.php?id=70686): `TIME(3)` and `TIME(6)` fields serialize milliseconds incorrectly
95102
* [#72494](https://bugs.mysql.com/bug.php?id=72494), [#83330](https://bugs.mysql.com/bug.php?id=83330): EndOfStreamException inserting large blob with UseCompression=True
96103
* [#73610](https://bugs.mysql.com/bug.php?id=73610): Invalid password exception has wrong number
97-
* [#73788](https://bugs.mysql.com/bug.php?id=73788): Can't use `DateTimeOffset`
104+
* [#73788](https://bugs.mysql.com/bug.php?id=73788): Cant use `DateTimeOffset`
98105
* [#75604](https://bugs.mysql.com/bug.php?id=75604): Crash after 29.4 days of uptime
99106
* [#75917](https://bugs.mysql.com/bug.php?id=75917), [#76597](https://bugs.mysql.com/bug.php?id=76597), [#77691](https://bugs.mysql.com/bug.php?id=77691), [#78650](https://bugs.mysql.com/bug.php?id=78650), [#78919](https://bugs.mysql.com/bug.php?id=78919), [#80921](https://bugs.mysql.com/bug.php?id=80921), [#82136](https://bugs.mysql.com/bug.php?id=82136): "Reading from the stream has failed" when connecting to a server
100107
* [#77421](https://bugs.mysql.com/bug.php?id=77421): Connection is not reset when pulled from the connection pool
@@ -105,15 +112,15 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector.
105112
* [#81650](https://bugs.mysql.com/bug.php?id=81650), [#88962](https://bugs.mysql.com/bug.php?id=88962): `Server` connection string option may now contain multiple, comma separated hosts that will be tried in order until a connection succeeds
106113
* [#83229](https://bugs.mysql.com/bug.php?id=83329): "Unknown command" exception inserting large blob with UseCompression=True
107114
* [#84220](https://bugs.mysql.com/bug.php?id=84220): Cannot call a stored procedure with `.` in its name
108-
* [#84701](https://bugs.mysql.com/bug.php?id=84701): Can't create a parameter using a 64-bit enum with a value greater than int.MaxValue
115+
* [#84701](https://bugs.mysql.com/bug.php?id=84701): Cant create a parameter using a 64-bit enum with a value greater than int.MaxValue
109116
* [#85185](https://bugs.mysql.com/bug.php?id=85185): `ConnectionReset=True` does not preserve connection charset
110117
* [#86263](https://bugs.mysql.com/bug.php?id=86263): Transaction isolation level affects all transactions in session
111118
* [#87307](https://bugs.mysql.com/bug.php?id=87307): NextResult hangs instead of timing out
112119
* [#87316](https://bugs.mysql.com/bug.php?id=87316): MySqlCommand.CommandTimeout can be set to a negative value
113120
* [#87868](https://bugs.mysql.com/bug.php?id=87868): `ColumnSize` in schema table is incorrect for `CHAR(36)` and `BLOB` columns
114121
* [#87876](https://bugs.mysql.com/bug.php?id=87876): `IsLong` is schema table is incorrect for `LONGTEXT` and `LONGBLOB` columns
115122
* [#88058](https://bugs.mysql.com/bug.php?id=88058): `decimal(n, 0)` has wrong `NumericPrecision`
116-
* [#88124](https://bugs.mysql.com/bug.php?id=88124): CommandTimeout isn't reset when calling Read/NextResult
123+
* [#88124](https://bugs.mysql.com/bug.php?id=88124): CommandTimeout isnt reset when calling Read/NextResult
117124
* [#88611](https://bugs.mysql.com/bug.php?id=88611): `MySqlCommand` can be executed even if it has "wrong" transaction
118125
* [#89085](https://bugs.mysql.com/bug.php?id=89085): `MySqlConnection.Database` not updated after `USE database;`
119126
* [#89159](https://bugs.mysql.com/bug.php?id=89159): `MySqlDataReader` cannot outlive `MySqlCommand`

0 commit comments

Comments
 (0)