Skip to content

Why is defaultTableRef null when more than one tables are present? #278

@W1nstar

Description

@W1nstar

I'm having issues trying to read a catalog with more than one table, using the fill function. For some reason, it needs me to specify the tableRef. I don't know wich one it is, and it wouldn't be good for me to hardcode on my app the name of a table that might change later.

I thought _defaultTableRef would hold a reference to it, but is null. Theres this piece of code nulling it:

JSDO/src/progress.js

Lines 2278 to 2279 in 319202b

if (this._numBuffers != 1)
this._defaultTableRef = null;

    if (this._numBuffers != 1)
        this._defaultTableRef = null;

Should defaultTableRef be null if there's more than one table for some "background" reason?

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