Skip to content

v0.6.0 Cloned statement doesn't have postgres methods #21

Open

Description

@FanFataL

Hi,

After upgrading from 0.5.0 into 0.6.0 cloned statements stops working.

Steps to reproduce:

const query = sql.select().from('user');
query.limit(10); // <--- this is working
const query2 = query.clone();
query2.limit(10); // <--- this not working in 0.6.0 (limit is not a function)

Probably upgrading sqlBricks to v3 makes this issue.

Activity

  1. Suor commented on Nov 8, 2023

    @Suor
    Owner

    Does this type of thing work with sqlbricks themselves? Maybe the issue should be opened there?

  2. FanFataL commented on Nov 8, 2023

    @FanFataL
    Author

    limit (and other functions like offset) are added by this library ;-) And only those added functions not working after cloning.
    The standard sql-bricks functions works perfectly after cloning.

  3. Suor commented on Nov 8, 2023

    @Suor
    Owner

    Heh, it's been quite a while since I was actively developing this.

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions