@@ -141,7 +141,8 @@ BoundCreateTableInfo Binder::bindCreateNodeTableInfo(const CreateTableInfo& info
141141 std::move (boundExtraInfo));
142142}
143143
144- static PropertyDefinition getDefinition (const std::vector<PropertyDefinition>& definitions, const std::string& name) {
144+ static PropertyDefinition getDefinition (const std::vector<PropertyDefinition>& definitions,
145+ const std::string& name) {
145146 for (auto & definition : definitions) {
146147 if (definition.getName () == name) {
147148 return definition.copy ();
@@ -164,14 +165,17 @@ BoundCreateTableInfo Binder::bindCreateExternalNodeTableInfo(const CreateTableIn
164165 auto pkDefinition = getDefinition (propertyDefinitions, extraInfo.pkName );
165166 std::vector<PropertyDefinition> physicalPropertyDefinitions;
166167 physicalPropertyDefinitions.push_back (pkDefinition.copy ());
167- auto boundPhysicalExtraInfo = std::make_unique<BoundExtraCreateNodeTableInfo>(extraInfo.pkName , std::move (physicalPropertyDefinitions));
168- auto boundPhysicalCreateInfo = BoundCreateTableInfo (TableType::NODE,
169- getPhysicalTableName (info.tableName ), ConflictAction::ON_CONFLICT_THROW,
170- std::move (boundPhysicalExtraInfo));
168+ auto boundPhysicalExtraInfo = std::make_unique<BoundExtraCreateNodeTableInfo>(extraInfo.pkName ,
169+ std::move (physicalPropertyDefinitions));
170+ auto boundPhysicalCreateInfo =
171+ BoundCreateTableInfo (TableType::NODE, getPhysicalTableName (info.tableName ),
172+ ConflictAction::ON_CONFLICT_THROW, std::move (boundPhysicalExtraInfo));
171173 // Bind create node table reference info
172174 auto boundExtraInfo = std::make_unique<BoundExtraCreateExternalNodeTableInfo>(extraInfo.pkName ,
173- extraInfo.dbName , extraInfo.tableName , std::move (boundPhysicalCreateInfo), copyVector (propertyDefinitions));
174- return BoundCreateTableInfo (TableType::EXTERNAL_NODE, info.tableName , info.onConflict , std::move (boundExtraInfo));
175+ extraInfo.dbName , extraInfo.tableName , std::move (boundPhysicalCreateInfo),
176+ copyVector (propertyDefinitions));
177+ return BoundCreateTableInfo (TableType::EXTERNAL_NODE, info.tableName , info.onConflict ,
178+ std::move (boundExtraInfo));
175179}
176180
177181BoundCreateTableInfo Binder::bindCreateRelTableInfo (const CreateTableInfo& info) {
0 commit comments