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

Error: Conversion error: Conversion error: Key-value pairs must be separated by a ; #313

Open
AucaCoyan opened this issue Sep 21, 2023 · 0 comments

Comments

@AucaCoyan
Copy link

Hi!
I was playing with the crate but I couldn't get it running, after putting my connection string

static CONN_STR: Lazy<String> = Lazy::new(|| {
    env::var("TIBERIUS_TEST_CONNECTION_STRING").unwrap_or_else(|_| {
"Server=tcp:myspecialserver.mycompany.com,1433;Database=DB_MYDB;User Id=myspecialuser;Password=goodpassword".to_owned()
    })
});

(I don't use ; in any other place in the string except to separate the keys). Then, when it compiles, cargo runs displays

Error: Conversion error: Conversion error: Key-value pairs must be separated by a `;`

Can you give me some hint? I lookup for that error on the tiberius crate but found nothing about Key-value pairs
I don't know how can I debug this error :(

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

1 participant