Skip to content

[Bug]: result.rowcount returns -1 after insert or update #1394

Description

@pavel-v-sobolev

What happened?

I have a code which runs sql alchemy insert statement.
result = conn.execute(insert_stmt)
result.rowcount value is -1 instead of actual row count being inserted.

The same problem I observe for update and delete statements. All return -1 row count.

DuckDB Engine Version

0.17.0

DuckDB Version

1.5.1

SQLAlchemy Version

2.0.49

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions