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

segfault when trying to use nrows on update query return #541

Open
gmcalist opened this issue Oct 5, 2024 · 0 comments
Open

segfault when trying to use nrows on update query return #541

gmcalist opened this issue Oct 5, 2024 · 0 comments

Comments

@gmcalist
Copy link

gmcalist commented Oct 5, 2024

I'm building a custom benchmark where I would like to be able to understand the number of rows updated by a particular statement so that I can do particular logic based on that. I have tried the same technique that I've used on my select statements but when I attempt it for an update statement I get a segafult. Here is a partial snippet of what I trying with PostgreSQL.

rs=con:query(([[UPDATE ...
if rs.nrows == 0 then

The segfault only happens if I try to use rs.nrows not the actual query execution.

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

No branches or pull requests

1 participant