-
Notifications
You must be signed in to change notification settings - Fork 232
Error - unable to generate code for table: %s, primary key column: [%d] %s has unsupported type: %s / %s #152
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
Comments
gen doesn't know how to map varbinary to a go type. Maybe you should define your mapping.json just like: {
"sql_type": "date",
"go_type": "time.Time",
"json_type": "Text",
"protobuf_type": "google.protobuf.Timestamp",
"guregu_type": "*models.Time",
"go_nullable_type": "time.Time",
"swagger_type": "time.Time"
} |
After doing more research, it seems gen understands |
what error? paste the error stack please |
I am getting like(As in the first comment) Sorry, I don't have stack ATM. |
I have added some code to support varbinary but have not test with a mysql database. |
gen --version
v0.9.27 (08/04/2020)
I am trying like:
Then getting:
Yes, my primary key column is a
varbinary
Is there a way to fix this?
Thanks
The text was updated successfully, but these errors were encountered: