Skip to content

Changes: The statement did not return a result set. #292

Open
@bhargavkumar-65

Description

@bhargavkumar-65

I am trying to update a table in my ms sqlserver db, below is my code.

	Source source = new Source("//SourceConnectionString");
	Changes change = new Changes();
	change.setRequest(new Request(source, "UPDATE CM_GENERATOR SET GEN_VALUE='3'"));

when i execute above code, i am getting below error

org.assertj.db.exception.AssertJDBException: com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.

at org.assertj.db.type.AbstractDbData.load(AbstractDbData.java:136)
at org.assertj.db.type.AbstractDbData.getPksNameList(AbstractDbData.java:255)
at org.assertj.db.type.Changes.getDuplicatedRequest(Changes.java:244)
at org.assertj.db.type.Changes.setRequest(Changes.java:159)


    <dependency>
        <groupId>org.assertj</groupId>
        <artifactId>assertj-db</artifactId>
        <version>2.0.2</version>
    </dependency>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions