Closed jetaggart closed 11 months ago
@tangyang9464 @JalinWang @imp2002
@jetaggart I can't reproduce your issue. We have unit test at:
Hmm very strange. I run all my local pg instances out of docker compose, maybe it's something with that. I ended up using a different adapter (database/sql) and that's working. Feel free to close if it's not reproducible.
Also, it worked the first time it connected. Connected and migrated just fine, subsequent connects failed to boot. Does your test connect, disconnect, then reconnect?
@jetaggart I think I have, I run this test for multiple times (comment the mysql code):
Using PG 16.1 or 15.5, the adapter fails to connect:
error: adapter: pq: trailing junk after parameter at or near "$1A"
OR
Both fail. It works the first time, it will create the casbin_rule table and perform a query. The second time I boot the application I get the above error.