Skip to content

Commit be04e25

Browse files
committed
Adjust some tests for that.
1 parent b43e884 commit be04e25

File tree

1 file changed

+5
-1
lines changed
  • fdb-relational-core/src/test/java/com/apple/foundationdb/relational/api/ddl

1 file changed

+5
-1
lines changed

fdb-relational-core/src/test/java/com/apple/foundationdb/relational/api/ddl/DdlTestUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@ private void buildTypesAndTables() {
251251
if (extension != null && extension.hasUsage() && extension.getUsage() == RecordMetaDataOptionsProto.RecordTypeOptions.Usage.UNION) {
252252
//we found the Union Descriptor
253253
for (DescriptorProtos.FieldDescriptorProto tableDescs : typeDesc.getFieldList()) {
254-
tableNames.add(tableDescs.getTypeName());
254+
String name = tableDescs.getTypeName();
255+
if (name.startsWith(".")) {
256+
name = name.substring(1);
257+
}
258+
tableNames.add(name);
255259
}
256260
}
257261
}

0 commit comments

Comments
 (0)