Skip to content

Return row / id of newly inserted row. #1

@kaaninho

Description

@kaaninho

Current insert! behaviour (code here):
After an insert happens, an integer ("the row count for SQL Data Manipulation Language (DML) statements" see here https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String) ) is returned.

What would be nice to be returned: The inserted row itself.

Maybe use instead of executeUpdate executeQuery?
In function run-query, the result-set is used as proposed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions