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

cql cannot parse covenantsql url with params #148

Closed
draveness opened this issue Dec 23, 2018 · 1 comment
Closed

cql cannot parse covenantsql url with params #148

draveness opened this issue Dec 23, 2018 · 1 comment
Assignees

Comments

@draveness
Copy link
Contributor

Create database returns url with params:

$ ./bin/cql -config conf/config.yaml -create 1
INFO[0000] the newly created database is: "covenantsql://0f1a6b81b80da80001b41d891a38ff50e6bd07cd9504377670848c5638b604ca?use_follower=false&use_leader=true"

But cql cmd cannot parse database url with params

$ ./bin/cql -config conf/config.yaml -dsn "covenantsql://0f1a6b81b80da80001b41d891a38ff50e6bd07cd9504377670848c5638b604ca?use_follower=false&use_leader=true"
INFO[0000] connecting to "covenantsql://0f1a6b81b80da80001b41d891a38ff50e6bd07cd9504377670848c5638b604ca%3Fuse_follower=false&use_leader=true?use_follower=false&use_leader=true"
ERRO[0000] run cli error                                 caller="main.go:290 main.main" error="covenantsql: parse covenantsql://0f1a6b81b80da80001b41d891a38ff50e6bd07cd9504377670848c5638b604ca%3Fuse_follower=false&use_leader=true?use_follower=false&use_leader=true: invalid URL escape \"%3F\"" stack="[#0 main.main@main.go:290      #1 runtime.main@proc.go:
@laodouya
Copy link
Member

Create database now returns no params dsn url.

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

No branches or pull requests

2 participants