-
Notifications
You must be signed in to change notification settings - Fork 72
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
no ‘id’ in casbin rule? #21
Comments
@wy10cheng can you provide the reproduce example and the crash log? |
@shy1st please take a look. /cc @fangzhengjin |
fontend use node-casbin/sequelize-adapter "2021-01-22 14:14:20.986 INFO 5143 --- [nio-8080-exec-1] org.casbin.jcasbin : An exception occurred:PreparedStatementCallback; bad SQL grammar [INSERT INTO casbin_rule VALUES(?, ?, ?, ?, ?, ?, ?)]; nested exception is java.sql.SQLException: Column count doesn't match value count at row 1" |
@wy10cheng I think it is ok that when we create the table rule, it will generate auto increment primary key.I will make up for that. |
Coming from this issue: node-casbin/sequelize-adapter#38
Hi,
Currently most of the casbin adapter casbin_rule table had added an ‘id’ column as the primary key. Could you please tell is it capable for this project to add back the ‘id’ column? Thanks a lot.
The text was updated successfully, but these errors were encountered: