Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHOW tables and SHOW columns don't work as expected #6

Closed
mauritslamers opened this issue Aug 22, 2010 · 1 comment
Closed

SHOW tables and SHOW columns don't work as expected #6

mauritslamers opened this issue Aug 22, 2010 · 1 comment

Comments

@mauritslamers
Copy link

When a SHOW TABLES or SHOW COLUMNS FROM [table] query is performed, the data returning is not in a format that is easy to parse.

When performing SHOW TABLES the field name is undefined, resulting in an object with a series of undefined keys. The values are correct

When performing SHOW COLUMNS FROM [table] the result isn't usable: the contents of results and fields by using sys.inspect:

22 Aug 14:58:28 - results: [ { undefined: 'auto_increment' } ]
22 Aug 14:58:28 - fields: { undefined:
{ length: 39
, received: 39
, number: 7
, type: 4
, catalog: 'def'
, db: '\u0007COLUMNS\u0000\u0005Extra\u0005EXTRA\f\b\u0000\u0014\u0000\u0000\u0000\u00fd\u0001\u0000\u0000\u0000\u0000'
}
}

@felixge
Copy link
Collaborator

felixge commented Aug 22, 2010

Duplicate of #5 (which has just been fixed).

myspar pushed a commit to myspar/mysql that referenced this issue Dec 21, 2023
Add generate stackbrew script like golang
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants