RaigorJiang opened a new pull request, #29759:
URL: https://github.com/apache/shardingsphere/pull/29759
Fixes #29757.
### Before
```sql
mysql> show databases;
+--------------------+
| schema_name |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| shardingsphere |
| sys |
+--------------------+
```
### After
```sql
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| shardingsphere |
| sys |
+--------------------+
```
### Why name is `SCHEMA_NAME` and label is `Database`?
This is come from the result set meta data of native MySQL
```java
// show databases from mysql
com.mysql.jdbc.ResultSetMetaData@197d671 - Field level information:
com.mysql.jdbc.Field@402e37bc[catalog=information_schema,tableName=SCHEMATA,originalTableName=SCHEMATA,columnName=Database,originalColumnName=SCHEMA_NAME,mysqlType=253(FIELD_TYPE_VAR_STRING),flags=,
charsetIndex=33, charsetName=UTF-8]
// show database from proxy (before)
com.mysql.jdbc.ResultSetMetaData@197d671 - Field level information:
com.mysql.jdbc.Field@402e37bc[catalog="",tableName=SCHEMATA,originalTableName=SCHEMATA,columnName=schema_name,originalColumnName=Database,mysqlType=253(FIELD_TYPE_VAR_STRING),flags=
UNSIGNED, charsetIndex=33, charsetName=UTF-8]
// show database from proxy (after)
com.mysql.jdbc.ResultSetMetaData@197d671 - Field level information:
com.mysql.jdbc.Field@402e37bc[catalog=,tableName=SCHEMATA,originalTableName=SCHEMATA,columnName=Database,originalColumnName=SCHEMA_NAME,mysqlType=253(FIELD_TYPE_VAR_STRING),flags=
UNSIGNED, charsetIndex=33, charsetName=UTF-8]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]