Skip to content

Commit 4ddce5f

Browse files
Add summary changes for recent PRs (#14598)
1 parent 5e23ddc commit 4ddce5f

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

changelog/19.0/19.0.0/summary.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- [VTTablet Flags](#vttablet-flags)
88
- **[Docker](#docker)**
99
- [New MySQL Image](#mysql-image)
10+
- **[VTGate](#vtgate)**
11+
- [`FOREIGN_KEY_CHECKS` is now a Vitess Aware Variable](#fk-checks-vitess-aware)
1012
- **[Query Compatibility](#query-compatibility)**
1113
- [`SHOW VSCHEMA KEYSPACES` Query](#show-vschema-keyspaces)
1214

@@ -31,6 +33,12 @@ This lightweight image is a replacement of `vitess/lite` to only run `mysqld`.
3133

3234
Several tags are available to let you choose what version of MySQL you want to use: `vitess/mysql:8.0.30`, `vitess/mysql:8.0.34`.
3335

36+
### <a id="vtgate"/>VTGate
37+
38+
#### <a id="fk-checks-vitess-aware"/>`FOREIGN_KEY_CHECKS` is now a Vitess Aware Variable
39+
40+
When VTGate receives a query to change the `FOREIGN_KEY_CHECKS` value for a session, instead of sending the value down to MySQL, VTGate now keeps track of the value and changes the queries by adding `SET_VAR(FOREIGN_KEY_CHECKS=On/Off)` style query optimizer hints wherever required.
41+
3442
### <a id="query-compatibility"/>Query Compatibility
3543

3644
#### <a id="show-vschema-keyspaces"/>`SHOW VSCHEMA KEYSPACES` Query
@@ -42,11 +50,11 @@ error in the VSchema for the keyspace.
4250
An example output of the query looks like -
4351
```sql
4452
mysql> show vschema keyspaces;
45-
+---------------+---------+------------------+-------+
46-
| Keyspace Name | Sharded | Foreign Key Mode | Error |
47-
+---------------+---------+------------------+-------+
48-
| uks | false | managed | |
49-
| ks | true | managed | |
50-
+---------------+---------+------------------+-------+
51-
2 rows in set (0.00 sec)
53+
+----------+---------+-------------+---------+
54+
| Keyspace | Sharded | Foreign Key | Comment |
55+
+----------+---------+-------------+---------+
56+
| ks | true | managed | |
57+
| uks | false | managed | |
58+
+----------+---------+-------------+---------+
59+
2 rows in set (0.01 sec)
5260
```

0 commit comments

Comments
 (0)