Skip to content

Commit 2b3be95

Browse files
authored
Merge pull request #2673 from dolthub/gitbook-dev
Publish SQL Modes
2 parents b45bf7f + cbfacbb commit 2b3be95

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

packages/dolt/content/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
- [MySQL Information Schema](reference/sql/sql-support/information-schema.md)
9090
- [Collations and Character Sets](reference/sql/sql-support/collations-and-charsets.md)
9191
- [System Variables](reference/sql/sql-support/system-variables.md)
92+
- [SQL Modes](reference/sql/sql-support/sql-modes.md)
9293
- [Miscellaneous](reference/sql/sql-support/miscellaneous.md)
9394
- [Supported Clients](reference/sql/supported-clients/README.md)
9495
- [Programmatic](reference/sql/supported-clients/clients.md)

packages/dolt/content/reference/sql/sql-support/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ This section is divided into five main categories:
2222
4. [Information Schema](information-schema.md): Dolt support for MySQL information schema
2323
5. [Collations and Character Sets](collations-and-charsets.md): SQL features for describing and comparing strings
2424
6. [System Variables](system-variables.md): SQL features for configuring server behavior
25-
7. [Miscellaneous](miscellaneous.md): miscellaneous SQL features
25+
7. [SQL Modes](sql-modes.md): Dolt support for MySQL SQL modes
26+
8. [Miscellaneous](miscellaneous.md): miscellaneous SQL features
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SQL Modes
2+
3+
Dolt supports a subset of [SQL modes that MySQL supports](https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html).
4+
SQL modes are added upon request, so please [file an issue](https://github.com/dolthub/dolt/issues) if a SQL mode you need is missing.
5+
6+
**Currently supporting 4 of 18 MySQL SQL Modes.**
7+
8+
| Mode | Parsed | Supported |
9+
|:---------------------------------------------------------------|:-------|:----------|
10+
| `ALLOW_INVALID_DATES` |||
11+
| `ANSI_QUOTES` |||
12+
| `ERROR_FOR_DIVISION_BY_ZERO` |||
13+
| `HIGH_NOT_PRECEDENCE` |||
14+
| `IGNORE_SPACE` |||
15+
| `NO_AUTO_VALUE_ON_ZERO` |||
16+
| `NO_BACKSLASH_ESCAPES` |||
17+
| `NO_DIR_IN_CREATE` |||
18+
| `NO_ENGINE_SUBSTITUION` |||
19+
| `NO_UNSIGNED_SUBTRACTION` |||
20+
| `NO_ZERO_IN_DATE` |||
21+
| `ONLY_FULL_GROUP_BY` |||
22+
| `PAD_CHAR_TO_FULL_LENGTH` |||
23+
| `PIPES_AS_CONCAT` |||
24+
| `REAL_AS_FLOAT` |||
25+
| `STRICT_ALL_TABLES` |||
26+
| `STRICT_TRANS_TABLES` |||
27+
| `TIME_TRUNCATE_FRACTIONAL` |||

0 commit comments

Comments
 (0)