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
Cannot read property 'isView' of undefined #35
Comments
@ashankasr : looks like it is compatibility with mysql v8.0. I haven;t tested it with mysql v8.0. Could you please paste this from your mysql console describe information_schema.VIEWS; |
( .. ran into mysqljs connectivity issue whilst setting up mysql 8. Will give it a try later ) |
How to solve this problem |
I've the same problem, any solution? |
@tmlzx @asllamas : could you please paste the error stack you are seeing. I tried connecting to mysql8 on my machine and encountered following error from mysql module
This looks like issue in Note: |
The error:
|
@asllamas : thank you. Could you please paste the output of the following mysql query on your machine. This will be helpful.
Note: |
|
@asllamas: Thank you. Please check if latest version of xmysql is of any help. There was an issue accessing isView property which was overlooked (as I am still not clear on how xmysql is able to access mysql 8) Update or install latest xmysql (0.4.8)
Please let me know the result. |
works perfectly! , thank you |
Can you upgrade on docker please? Thank you! |
There was an error reading isView.
Hi All,
Here are my dev environment details.
Tried to generate the API for the a basic database with a single table with two columns. I got the following error:
Call Stack
(node:3444) [DEP0095] DeprecationWarning: timers.enroll() is deprecated. Please use setTimeout instead.
(node:3444) [DEP0096] DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.
C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'isView' of undefined
at Xsql.iterateToCacheTables (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\lib\xsql.js:75:74)
at Query.self.pool.query [as _callback] (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\lib\xsql.js:46:14)
at Query.Sequence.end (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Sequence.js:88:24)
at Query._handleFinalResultPacket (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Query.js:139:8)
at Query.EofPacket (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Query.js:123:8)
at Protocol._parsePacket (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Protocol.js:279:23)
at Parser.write (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Parser.js:76:12)
at Protocol.write (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket. (C:\Users\ashan\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\Connection.js:103:28)
at Socket.emit (events.js:182:13)
The text was updated successfully, but these errors were encountered: