Skip to content

Getting an error on Memory access out of bounds when trying to run db.exec with a large query string #571

Open
@omriz-positive

Description

@omriz-positive

When creating the database initially, we use a large file that is successfully processed to create the database.
Afterwards, when we attampt to run a script to add another table, it is throw the error Memory access out of bounds.

This always happens when the query string is about 1.5MB.
When the query is below that size, the query is successfully processed and the database is updated with the new table.

Is there a limit to much much the query string should be big?

This is was done Google Chrome browser version 120.0.6099.224 64bits
On SQL.js library version ^1.8.0

Activity

ed6767

ed6767 commented on Jan 23, 2025

@ed6767

Hi @omriz-positive - I managed to resolve my issue here by downgrading to v1.10.2

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Getting an error on Memory access out of bounds when trying to run db.exec with a large query string · Issue #571 · sql-js/sql.js