Description:
Create a collection:
mysql-js> db.createCollection('somethingNew')
<Collection:somethingNew>
mysql-js> db.collections
{
"CountryInfo": <Collection:CountryInfo>,
"somethingNew": <Collection:somethingNew>
}
Without closing the mysqlsh session, run this command in a SQL client:
mysql [localhost] {msandbox} (world_x) > drop table somethingNew;
Query OK, 0 rows affected (0.01 sec)
Then return to the open session in mysqlsh:
mysql-js> db.collections
{
"CountryInfo": <Collection:CountryInfo>,
"somethingNew": <Collection:somethingNew>
}
mysql-js> db.getCollections()
{
"CountryInfo": <Collection:CountryInfo>,
"somethingNew": <Collection:somethingNew>
}
The table removal in a parallel session is ignored in the current session, as mysqlsh only collects information at login time.
How to repeat:
see above.
See also http://datacharmer.blogspot.com/2016/05/taking-mysql-document-store-for-spin.html for more detail on this issue.
Description: Create a collection: mysql-js> db.createCollection('somethingNew') <Collection:somethingNew> mysql-js> db.collections { "CountryInfo": <Collection:CountryInfo>, "somethingNew": <Collection:somethingNew> } Without closing the mysqlsh session, run this command in a SQL client: mysql [localhost] {msandbox} (world_x) > drop table somethingNew; Query OK, 0 rows affected (0.01 sec) Then return to the open session in mysqlsh: mysql-js> db.collections { "CountryInfo": <Collection:CountryInfo>, "somethingNew": <Collection:somethingNew> } mysql-js> db.getCollections() { "CountryInfo": <Collection:CountryInfo>, "somethingNew": <Collection:somethingNew> } The table removal in a parallel session is ignored in the current session, as mysqlsh only collects information at login time. How to repeat: see above. See also http://datacharmer.blogspot.com/2016/05/taking-mysql-document-store-for-spin.html for more detail on this issue.