| 210 | } |
| 211 | |
| 212 | void CreateQueryUUIDs::copyToQuery(ASTCreateQuery & query) const |
| 213 | { |
| 214 | query.uuid = uuid; |
| 215 | |
| 216 | if (query.targets) |
| 217 | query.targets->resetInnerUUIDs(); |
| 218 | |
| 219 | if (!targets_inner_uuids.empty()) |
| 220 | { |
| 221 | if (!query.targets) |
| 222 | query.set(query.targets, make_intrusive<ASTViewTargets>()); |
| 223 | |
| 224 | for (const auto & [kind, inner_uuid] : targets_inner_uuids) |
| 225 | { |
| 226 | if (inner_uuid != UUIDHelpers::Nil) |
| 227 | query.targets->setInnerUUID(kind, inner_uuid); |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | } |
no test coverage detected