Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/MySQLIndex.cpp @ 305:87f0e29a1dc1
added Dictionary::Clear()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 12 Jul 2021 09:40:01 +0200 |
parents | 3a52e27a2d80 |
children | 8de3a1ecac11 |
comparison
equal
deleted
inserted
replaced
304:dd4b0edd1661 | 305:87f0e29a1dc1 |
---|---|
350 | 350 |
351 void MySQLIndex::DeleteResource(IDatabaseBackendOutput& output, | 351 void MySQLIndex::DeleteResource(IDatabaseBackendOutput& output, |
352 DatabaseManager& manager, | 352 DatabaseManager& manager, |
353 int64_t id) | 353 int64_t id) |
354 { | 354 { |
355 /** | |
356 * Contrarily to PostgreSQL and SQLite, the MySQL dialect doesn't | |
357 * support cascaded delete inside the same table. This has to be | |
358 * manually reimplemented. | |
359 **/ | |
360 | |
355 ClearDeletedFiles(manager); | 361 ClearDeletedFiles(manager); |
356 | 362 |
357 // Recursive exploration of resources to be deleted, from the "id" | 363 // Recursive exploration of resources to be deleted, from the "id" |
358 // resource to the top of the tree of resources | 364 // resource to the top of the tree of resources |
359 | 365 |