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

jsonb data type not supported #9

Open
gdg87 opened this issue May 25, 2020 · 5 comments · Fixed by binarygeotech/nestjs-oauth2-server-module#1
Open

jsonb data type not supported #9

gdg87 opened this issue May 25, 2020 · 5 comments · Fixed by binarygeotech/nestjs-oauth2-server-module#1

Comments

@gdg87
Copy link

gdg87 commented May 25, 2020

Hi,
I try to use the package with mysql database but I have this error

DataTypeNotSupportedError: Data type "jsonb" in "AccessTokenEntity.createdFrom" is not supported by "mysql" database.

Is possible switch the field type to json in order to support more database.

Thanks

@ptesser
Copy link

ptesser commented Jun 10, 2020

Hi,
it's the same for me.
I'm using a MySQL 5.7 database and I think the problem appears because in MYSQL jsonb is not support.

Is there a workaround for this?

Is it possible to change the default entities with custom ones?

Thanks

@gdg87
Copy link
Author

gdg87 commented Jun 10, 2020

Hi @ptesser,
since no news comes from switchit I decide fork it and publish a new package. You can find it here:

https://www.npmjs.com/package/@switchit/nestjs-oauth2-server

If you want to contribute you are welcome.

@nmacherey
Copy link

nmacherey commented Jun 10, 2020 via email

@ptesser
Copy link

ptesser commented Jun 11, 2020

Hi @gdg87,
thanks for the fork. I'll watch it, but probably I'll wait that @nmacherey take care of your integration.

Thanks a lot

@CayBap
Copy link

CayBap commented Dec 9, 2020

I change to json type and I try to run it in mysql
set global sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
it worked

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

Successfully merging a pull request may close this issue.

4 participants