Skip to content

sql_execute: core7.getStatementTypes is not a function — 36 failures in one day #469

Description

@anandgupta42

Problem

sql_execute tool fails with:

core7.getStatementTypes is not a function. (In ?, ? is undefined)

36 occurrences observed in a single day across multiple sessions.

Impact

  • Users attempting to execute SQL queries hit this error silently
  • The function getStatementTypes is being called on an object (core7) where it is either undefined or not yet initialized
  • This suggests a race condition in module loading, or a version mismatch where core7 doesn't expose getStatementTypes

Suggested investigation

  1. Check where core7.getStatementTypes is called in the sql_execute tool path
  2. Verify core7 is properly initialized before getStatementTypes is invoked
  3. Check if this is version-specific — could be a regression in a recent CLI release
  4. Add defensive check: if (typeof core7?.getStatementTypes !== 'function') with a clear error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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