Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

.group().having() is not a function #365

Open
hagen opened this issue Sep 14, 2018 · 1 comment
Open

.group().having() is not a function #365

hagen opened this issue Sep 14, 2018 · 1 comment

Comments

@hagen
Copy link

hagen commented Sep 14, 2018

Hi there,
running mssql flavor of Squel. Seems .having() is not supported for this flavor?

squel.select().from('Table').group('Field').having(squel.str('COUNT(*) > ?'), 1)

If flavor is changed to mysql, no error is thrown.

@dnseminara
Copy link

dnseminara commented Oct 19, 2018

Encountering the exact same situation when using the mssql flag.

EDIT: Quickly looking at the differences, it looks like mssql.js is missing the HavingBlock from Core.js. While, the postgres flavour includes it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants