8000 AJ-976: fix createScalarWithDefaultValue returning wrong type · dolphindb/api-java@e7b0bfa · GitHub
[go: up one dir, main page]

Skip to content

Commit e7b0bfa

Browse files
committed
AJ-976: fix createScalarWithDefaultValue returning wrong type
1 parent 983dcfc commit e7b0bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/data/BasicEntityFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private class SecondFactory implements TypeFactory{
454454
public Matrix createMatrix(ExtendedDataInput in) throws IOException { return new BasicSecondMatrix(in);}
455455
public ExtendObj createExtendObj(ExtendedDataInput in) throws IOException { return null;}
456456
public Vector createVector(int size, int capacity, int extra) { return new BasicSecondVector(size, capacity);}
457-
public Scalar createScalarWithDefaultValue() { return new BasicInt(0);}
457+
public Scalar createScalarWithDefaultValue() { return new BasicSecond(0);}
458458
public Vector createVectorWithDefaultValue(int size, int extra){ return new BasicSecondVector(size);}
459459
public Vector createPairWithDefaultValue(){ return new BasicSecondVector(Entity.DATA_FORM.DF_PAIR, 2);}
460460
public Matrix createMatrixWithDefaultValue(int rows, int columns){ return new BasicSecondMatrix(rows, columns);}

0 commit comments

Comments
 (0)
0