Bug #82768 | mysqlsh fails if multiple options are given in hashbang | ||
---|---|---|---|
Submitted: | 28 Aug 2016 18:32 | Modified: | 11 May 2018 18:42 |
Reporter: | Daniël van Eeden (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Document Store: MySQL Shell | Severity: | S3 (Non-critical) |
Version: | 1.0.4 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[28 Aug 2016 18:32]
Daniël van Eeden
[28 Aug 2016 18:36]
Daniël van Eeden
To create the test data: mysql-py> \use test Schema `test` accessible through db. mysql-py> db.createCollection("t1") <Collection:t1> mysql-py> db.t1.add({'foo': 'bar'}) Query OK, 1 item affected (0.02 sec) mysql-py> db.t1.add({'foo2': 'bar2'}) Query OK, 1 item affected (0.02 sec)
[28 Aug 2016 18:40]
MySQL Verification Team
Hello Daniël, Thank you for the report. Thanks, Umesh
[11 May 2018 18:42]
Hema Sridharan
From Development: *Not a bug (anymore)* Fedora 24x64 MySQL Server 5.7.17 21082704.mysql-shell-1.0.6-0.1.fc24.x86_64 After a couple of changes to the "test.py" file I made it work without problems: First, create the collection "t1": mysql-py> db.createCollection("t1") <Collection:t1> mysql-py> db.t1.add({'foo': 'bar'}) Query OK, 1 item affected (0.02 sec) mysql-py> db.t1.add({'foo2': 'bar2'}) *test.py* {noformat} #!/usr/bin/mysqlsh --py --file from mysqlsh import mysqlx mysession = mysqlx.get_node_session('root:guidev!@127.0.0.1:33060') mytest = mysession.get_schema('test') result = mytest.t1.find().execute() while True: record = result.fetch_one() if record is None: break print(record) {noformat} *Result:* $ mysqlsh --py --file test.py None