Bug #87595 mysqlsh --json output shows "info" but default output not
Description:
Hi,
The output differs like this:
$ mysqlsh root:@localhost/generated_columns_test --py --interactive --execute "db.get_collections()"
Creating a Session to 'root@localhost/generated_columns_test'
Your MySQL connection id is 74 (X protocol)
Server version: 5.7.19-17-debug MySQL Community Server (GPL)
Default schema `generated_columns_test` accessible through db.
[
<Collection:test_coll>,
<Collection:test_coll1>,
<Collection:test_coll10>,
<Collection:test_coll11>,
<Collection:test_coll12>,
<Collection:test_coll13>,
<Collection:test_coll14>,
<Collection:test_coll15>,
<Collection:test_coll16>,
<Collection:test_coll17>,
<Collection:test_coll18>,
<Collection:test_coll19>,
<Collection:test_coll2>,
<Collection:test_coll20>,
<Collection:test_coll3>,
<Collection:test_coll4>,
<Collection:test_coll5>,
<Collection:test_coll6>,
<Collection:test_coll7>,
<Collection:test_coll8>,
<Collection:test_coll9>
]
$ mysqlsh root:@localhost/generated_columns_test --py --json --interactive --execute "db.get_collections()"
{
"info": "Creating a Session to 'root@localhost/generated_columns_test'"
}
{
"info": "Your MySQL connection id is 75 (X protocol) Server version: 5.7.19-17-debug MySQL Community Server (GPL) Default schema `generated_columns_test` accessible through db."
}
[
{
"class": "Collection",
"name": "test_coll"
},
{
"class": "Collection",
"name": "test_coll1"
},
According to json output the original output should be something like:
$ mysqlsh root:@localhost/generated_columns_test --py --interactive --execute "db.get_collections()"
INFO: Creating a Session to 'root@localhost/generated_columns_test'
INFO: Your MySQL connection id is 74 (X protocol)
INFO: Server version: 5.7.19-17-debug MySQL Community Server (GPL)
INFO: Default schema `generated_columns_test` accessible through db.
How to repeat:
See description
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: Hi, The output differs like this: $ mysqlsh root:@localhost/generated_columns_test --py --interactive --execute "db.get_collections()" Creating a Session to 'root@localhost/generated_columns_test' Your MySQL connection id is 74 (X protocol) Server version: 5.7.19-17-debug MySQL Community Server (GPL) Default schema `generated_columns_test` accessible through db. [ <Collection:test_coll>, <Collection:test_coll1>, <Collection:test_coll10>, <Collection:test_coll11>, <Collection:test_coll12>, <Collection:test_coll13>, <Collection:test_coll14>, <Collection:test_coll15>, <Collection:test_coll16>, <Collection:test_coll17>, <Collection:test_coll18>, <Collection:test_coll19>, <Collection:test_coll2>, <Collection:test_coll20>, <Collection:test_coll3>, <Collection:test_coll4>, <Collection:test_coll5>, <Collection:test_coll6>, <Collection:test_coll7>, <Collection:test_coll8>, <Collection:test_coll9> ] $ mysqlsh root:@localhost/generated_columns_test --py --json --interactive --execute "db.get_collections()" { "info": "Creating a Session to 'root@localhost/generated_columns_test'" } { "info": "Your MySQL connection id is 75 (X protocol) Server version: 5.7.19-17-debug MySQL Community Server (GPL) Default schema `generated_columns_test` accessible through db." } [ { "class": "Collection", "name": "test_coll" }, { "class": "Collection", "name": "test_coll1" }, According to json output the original output should be something like: $ mysqlsh root:@localhost/generated_columns_test --py --interactive --execute "db.get_collections()" INFO: Creating a Session to 'root@localhost/generated_columns_test' INFO: Your MySQL connection id is 74 (X protocol) INFO: Server version: 5.7.19-17-debug MySQL Community Server (GPL) INFO: Default schema `generated_columns_test` accessible through db. How to repeat: See description