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

Support bigint #53

Closed
sdurban opened this issue Apr 2, 2020 · 2 comments
Closed

Support bigint #53

sdurban opened this issue Apr 2, 2020 · 2 comments

Comments

@sdurban
Copy link
Contributor

sdurban commented Apr 2, 2020

Describe the bug
When you try to get a table definition with a query like:

SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'database' AND TABLE_NAME = 'user'

App will crash with the error:

Exception: unsupported type <class 'jpype._jclass.java.math.BigInteger'>: 1

To Reproduce
In mysql/mariadb create a schema an try to get the table definition with a query like:

POST https://localhost:8080/Execute
User-Agent: aws-sdk-nodejs/2.647.0 linux/v12.16.1 promise
Content-Type: application/json
{
"secretArn": "arn:aws:secretsmanager:us-east-1:123456789012:secret:dummy",
"resourceArn": "arn:aws:rds:us-east-1:123456789012:cluster:dummy",
"sql": "SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'database' AND TABLE_NAME = 'user'",
"database": "database"
}

Docker will crash with this error:

imagen

Expected behavior
Like says in AWS Documentation (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) it must return a LONG Data type.

imagen

@koxudaxi
Copy link
Owner

koxudaxi commented Apr 3, 2020

@sdurban
Thank you for creating this issue and PR.

I didn't check the type. I'm happy :)

I have released a new version as 0.4.9
you can pull it from DockerHub.

Thank you very much.

@sdurban
Copy link
Contributor Author

sdurban commented Apr 3, 2020

@koxudaxi Thank you so much for the speedy merge ;)!

@sdurban sdurban closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants