Skip to content

useUTC=False is not working in connection string #1860

@heroboy

Description

@heroboy

const result = parse(connectionString)
const parsed = result.toSchema(MSSQL_SCHEMA)
// Include non-standard keys (client id, tenant id, token, msi endpoint, msi secret)
// that are used for authentication but not part of the MSSQL schema
for (const [key, value] of result) {
if (!(key in parsed)) {
parsed[key] = value
}
}

useutc is not in the MSSQL_SCHEMA, so it is parsed as 'False' (string). Then in the later case 'useutc': !!'False'===true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions