Comments (8)
@closetool
from casbin-pg-adapter.
@arafat-java I couldn't repeat this bug on my machine
Can you give me more specific informations, like values of oldPolicies
& newPermissions
at runtime, thanks.
from casbin-pg-adapter.
oldPolicies
tenantADMIN-falcon MonthlyEmailCampaign write task
EmailMarketers MonthlyEmailCampaign write task
jack MonthlyEmailCampaign read task
Jill MonthlyEmailCampaign write task
newPermissions
tenantADMIN-falcon MonthlyEmailCampaign write task
EmailMarketers MonthlyEmailCampaign read task
bob MonthlyEmailCampaign read task
alice MonthlyEmailCampaign write task
from casbin-pg-adapter.
@arafat-java But the update sql you pasted here has no error, isn't it?
from casbin-pg-adapter.
@arafat-java Please let us know if we are missing something, we would appreciate any additional details
from casbin-pg-adapter.
Basically the oldPolicies and newPermissions pasted above is what I get when I fmt.Println() both the arrays.
But when those arrays are passed as args to UpdatePolicies(oldPolicies, newPermissions ) the pg adapter constructs the update sql that I posted in my initial comment
from casbin-pg-adapter.
@closetool Let me know if you need some more info
from casbin-pg-adapter.
@closetool
from casbin-pg-adapter.
Related Issues (20)
- Custom database names HOT 3
- Mismatch between model and query HOT 4
- Thoughts on using database/sql instead of go-pg? HOT 9
- Fix the Travis CI old repo path error
- [Question] Logging all SQL Queries HOT 5
- Add updatePolicies() API to this adapter HOT 10
- [BUG] All enforcers start using casbin_rule table from the latest adapter instance instead of the ones from their own adapters HOT 15
- [Request] Will there be support for go_pg V10? HOT 1
- [UPDATE] Use go-pg v10 for database connections HOT 3
- interface conversion: *pgadapter.Adapter is not persist.UpdatableAdapter: missing method UpdateFilteredPolicies HOT 9
- Fail to LoadPolicy HOT 2
- Question : How to close connection created using pgAdapter.NewFilteredAdapter HOT 5
- AddPolicies does not act as expected for new additions. HOT 4
- ptype column name changed HOT 2
- NewAdapter mutates the db options call parameter HOT 4
- cannot remove policy after update HOT 6
- Unable to load policy upgraded to latest version of `casbin` version. HOT 1
- How to use existing database via connection string HOT 4
- Update go-pg to ensure SCRAM-SHA-256-PLUS support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casbin-pg-adapter.