Skip to content

bug in sqlite3 driver. #461

Description

@starwing

at line 23 of sqlite.js:

        // on Windows, paths have a drive letter which is parsed by
        // url.parse() as the hostname. If host is defined, assume
        // it's the drive letter and add ":"
        if (process.platform == "win32" && config.host.match(/^[a-z]$/i)) {

if we use a opts table instead of URL, the config.host may undefined, so have a check is required.

a change to

        if (process.platform == "win32" && config.host && config.host.match(/^[a-z]$/i)) {

avoid this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions