You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v0.6.0 Cloned statement doesn't have postgres methods #21
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.
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.
Activity
Suor commentedon Nov 8, 2023
Does this type of thing work with sqlbricks themselves? Maybe the issue should be opened there?
FanFataL commentedon Nov 8, 2023
limit(and other functions likeoffset) are added by this library ;-) And only those added functions not working after cloning.The standard sql-bricks functions works perfectly after cloning.
Suor commentedon Nov 8, 2023
Heh, it's been quite a while since I was actively developing this.