Skip to content

Commit f0a875a

Browse files
committed
README: Clarify strict mode
The strict mode may not be confused with the server-side strict mode set via the sql_mode system variable. Fixes #376
1 parent 1983bc3 commit f0a875a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ Valid Values: true, false
263263
Default: false
264264
```
265265

266-
`strict=true` enables the strict mode in which MySQL warnings are treated as errors.
266+
`strict=true` enables a driver-side strict mode in which MySQL warnings are treated as errors. This mode should not be used in production as it may lead to data corruption in certain situations.
267+
268+
A server-side strict mode, which is safe for production use, can be set via the [`sql_mode`](https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html) system variable.
267269

268270
By default MySQL also treats notes as warnings. Use [`sql_notes=false`](http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sql_notes) to ignore notes. See the [examples](#examples) for an DSN example.
269271

0 commit comments

Comments
 (0)