prisma / tiberius

TDS 7.2+ (Microsoft SQL Server) driver for Rust
Apache License 2.0
311 stars 113 forks source link

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

Open AucaCoyan opened 10 months ago

AucaCoyan commented 10 months ago

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

ananduremanan commented 1 month ago

Any update on this?