tiberius icon indicating copy to clipboard operation
tiberius copied to clipboard

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

Open AucaCoyan opened this issue 2 years ago • 1 comments

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 :(

AucaCoyan avatar Sep 21 '23 23:09 AucaCoyan

Any update on this?

anandhuremanan avatar Jun 20 '24 12:06 anandhuremanan