Skip to content

Commit 1802ef0

Browse files
author
Jeffrey Charles
committed
Add note about errno 1290 to README
1 parent 50349fc commit 1802ef0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Default: false
277277
```
278278

279279

280-
`rejectreadOnly=true` causes the driver to reject read-only connections. This
280+
`rejectReadOnly=true` causes the driver to reject read-only connections. This
281281
is for a possible race condition during an automatic failover, where the mysql
282282
client gets connected to a read-only replica after the failover.
283283

@@ -292,6 +292,11 @@ If you are not relying on read-only transactions to reject writes that aren't
292292
supposed to happen, setting this on some MySQL providers (such as AWS Aurora)
293293
is safer for failovers.
294294

295+
Note that ERROR 1290 can be returned for a `read-only` server and this option will
296+
cause a retry for that error. However the same error number is used for some
297+
other cases. You should ensure your application will never cause an ERROR 1290
298+
except for `read-only` mode when enabling this option.
299+
295300

296301
##### `strict`
297302

0 commit comments

Comments
 (0)