Skip to content

Commit

Permalink
Update collations and make utf8mb4 default (mysqljs#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Apr 5, 2019
1 parent d3a0b0f commit 93c3765
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 199 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -171,13 +171,18 @@ Unless you need the fallback behavior, please use `collation` instead.
```
Type: string
Valid Values: <name>
Default: utf8_general_ci
Default: utf8mb4_general_ci
```

Sets the collation used for client-server interaction on connection. In contrast to `charset`, `collation` does not issue additional queries. If the specified collation is unavailable on the target server, the connection will fail.

A list of valid charsets for a server is retrievable with `SHOW COLLATION`.

The default collation (`utf8mb4_general_ci`) is supported from MySQL 5.5. You should use an older collation (e.g. `utf8_general_ci`) for older MySQL.

Collations for charset "ucs2", "utf16", "utf16le", and "utf32" can not be used ([ref](https://dev.mysql.com/doc/refman/5.7/en/charset-connection.html#charset-connection-impermissible-client-charset)).


##### `clientFoundRows`

```
Expand Down

0 comments on commit 93c3765

Please sign in to comment.