Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-364

`Types` / `TypeNumbers` enums throw at runtime

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.5.2
    • 3.5.4
    • None
    • None

    Description

      from https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/347

      `import

      { Types }

      from 'mariadb'; Types.TINY` throws
      `TypeError: Cannot read properties of undefined (reading 'TINY')`. The `.d.ts`
      declares `Types`/`TypeNumbers` as enums and types metadata with them (`field.type: Types`,
      `field.columnType: TypeNumbers`), but no runtime value is exported: they exist only at compile time.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.