Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX example does not work #69

Closed
heri16 opened this issue Jul 14, 2018 · 1 comment
Closed

MAX example does not work #69

heri16 opened this issue Jul 14, 2018 · 1 comment
Labels

Comments

@heri16
Copy link
Contributor

@heri16 heri16 commented Jul 14, 2018

nSQL([
    {name: "bill", age: 20},
    {name: "bob", age: 25},
    {name: "jeb", age: 27}
]).query("select", ["name", "MAX(age) AS age"]).exec().then((rows) => {
    console.log(rows); // <= [{name: "jeb", age: 27}]
})

Returns {name: "bill", age: 27} for me

@only-cliches
Copy link
Owner

@only-cliches only-cliches commented Jul 20, 2018

1.7.1 resolved this issue, also added a test so this doesn't come up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants