Skip to content

Commit

Permalink
routine return resultsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Santoro committed Sep 19, 2014
1 parent c407ed0 commit 50e0993
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@

public class VoltDBRoutineDefinition extends AbstractRoutineDefinition {

final DataTypeDefinition returnRowType = new DefaultDataTypeDefinition(
getDatabase(),
getSchema(),
"RESULT",
null,
null,
null,
null,
null
);

public VoltDBRoutineDefinition(SchemaDefinition schema, String name, String comment) {
super(schema, null, name, comment, null);
}
Expand Down Expand Up @@ -111,7 +122,7 @@ protected void init0() throws SQLException {
addParameter(InOutDefinition.IN,p);
}

// addParameter(InOutDefinition.RETURN,
// new DefaultParameterDefinition(this, "RETURN_VALUE", -1, SQLDataType.RESULT));
addParameter(InOutDefinition.RETURN,
new DefaultParameterDefinition(this, "RETURN_VALUE", -1, returnRowType));
}
}

0 comments on commit 50e0993

Please sign in to comment.