Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Apr 9, 2024
1 parent c62d791 commit 2d2db46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ StatementResult executeAndGetResult( PIStatement piStatement ) {
StatementResult.Builder resultBuilder = StatementResult.newBuilder();
if ( implementation.isDDL() || Kind.DML.contains( implementation.getKind() ) ) {
try ( ResultIterator iterator = implementation.execute( statement, -1 ) ) {
resultBuilder.setScalar( PolyImplementation.getRowsChanged( statement, iterator.getIterator(), MonitoringType.NONE ) );
resultBuilder.setScalar( PolyImplementation.getRowsChanged( statement, iterator.getIterator(), MonitoringType.from( implementation.getKind() ) ) );
}
client.commitCurrentTransactionIfAuto();
return resultBuilder.build();
Expand Down Expand Up @@ -117,7 +117,7 @@ public StatementResult executeAndGetResult( PIStatement piStatement, int fetchSi
}
if ( Kind.DML.contains( implementation.getKind() ) ) {
try ( ResultIterator iterator = implementation.execute( statement, -1 ) ) {
resultBuilder.setScalar( PolyImplementation.getRowsChanged( statement, iterator.getIterator(), MonitoringType.NONE ) );
resultBuilder.setScalar( PolyImplementation.getRowsChanged( statement, iterator.getIterator(), MonitoringType.from( implementation.getKind() ) ) );
}
client.commitCurrentTransactionIfAuto();
return resultBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
import org.polypheny.db.catalog.exceptions.GenericRuntimeException;
import org.polypheny.db.protointerface.proto.IndexedParameters;
import org.polypheny.db.protointerface.proto.ProtoBigDecimal;
import org.polypheny.db.protointerface.proto.ProtoDocument;
import org.polypheny.db.protointerface.proto.ProtoValue;
import org.polypheny.db.type.entity.PolyBinary;
import org.polypheny.db.type.entity.PolyBoolean;
import org.polypheny.db.type.entity.PolyList;
import org.polypheny.db.type.entity.PolyLong;
import org.polypheny.db.type.entity.PolyNull;
import org.polypheny.db.type.entity.PolyString;
import org.polypheny.db.type.entity.PolyValue;
Expand All @@ -43,6 +41,7 @@
import org.polypheny.db.type.entity.numerical.PolyDouble;
import org.polypheny.db.type.entity.numerical.PolyFloat;
import org.polypheny.db.type.entity.numerical.PolyInteger;
import org.polypheny.db.type.entity.numerical.PolyLong;
import org.polypheny.db.type.entity.temporal.PolyDate;
import org.polypheny.db.type.entity.temporal.PolyTime;
import org.polypheny.db.type.entity.temporal.PolyTimestamp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ message Request {
CommitRequest commit_request = 33;
RollbackRequest rollback_request = 34;
ConnectionPropertiesUpdateRequest connection_properties_update_request = 35;
CloseResultRequest close_result_response = 36;
CloseResultRequest close_result_request = 36;
}
}

Expand Down

0 comments on commit 2d2db46

Please sign in to comment.