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

fix SQL RETURNING behaviour on empty result #238

Merged
merged 1 commit into from Oct 24, 2011

Conversation

helllamer
Copy link
Contributor

z_db:q("SELECT * FROM rsc WHERE 1=2 RETURNING id", Context)

Result: 0

Expected result: []

@mworrell
Copy link
Member

Looks good, and indeed will give the expected behaviour.

mworrell added a commit that referenced this pull request Oct 24, 2011
fix SQL RETURNING behaviour on empty result
@mworrell mworrell merged commit 2e4170f into zotonic:master Oct 24, 2011
@mworrell
Copy link
Member

Thanks!

@arjan
Copy link
Member

arjan commented Oct 28, 2011

Continued in #247

rpip pushed a commit to rpip/zotonic that referenced this pull request Aug 12, 2013
fix SQL RETURNING behaviour on empty result
rpip pushed a commit to rpip/zotonic that referenced this pull request Aug 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants