Loading CHANGELOG.md +7 −0 Original line number Diff line number Diff line 1.0.6 (05/12/2024) ------------------ - [Fix] Nouvelle correction regression suite sortie 1.0.4... - Ajout de la possibilité de na pas faire de transaction dans le Table->merge 1.0.5 (03/12/2024) ------------------ Loading src/Table.php +8 −3 Original line number Diff line number Diff line Loading @@ -507,6 +507,7 @@ class Table 'update-cols' => [], 'update-ignore-cols' => [], 'update-only-null' => [], 'transaction' => true, 'id-column' => $bdd->getOption(Bdd::OPTION_ID_COLUMN), 'has-historique' => $hasHistorique, 'histo-user-id' => null, Loading Loading @@ -570,7 +571,9 @@ class Table /* Chargement des données actuelles et traitement */ if ($options['transaction']) { $bdd->beginTransaction(); } $selOptions = $options; $selOptions['fetch'] = Bdd::FETCH_EACH; Loading Loading @@ -647,7 +650,7 @@ class Table } $callbackProgress++; $k = $this->makeKeyArray($o, $key); $this->update($toUpdate, $key, ['ddl' => $ddl]); $this->update($toUpdate, $k, ['ddl' => $ddl]); if ($doCallback) call_user_func($callback, 'update', $callbackProgress, $callbackCount, $toUpdate, $k); break; Loading Loading @@ -686,7 +689,9 @@ class Table } } if ($options['transaction']) { $bdd->commitTransaction(); } return $result; } Loading Loading
CHANGELOG.md +7 −0 Original line number Diff line number Diff line 1.0.6 (05/12/2024) ------------------ - [Fix] Nouvelle correction regression suite sortie 1.0.4... - Ajout de la possibilité de na pas faire de transaction dans le Table->merge 1.0.5 (03/12/2024) ------------------ Loading
src/Table.php +8 −3 Original line number Diff line number Diff line Loading @@ -507,6 +507,7 @@ class Table 'update-cols' => [], 'update-ignore-cols' => [], 'update-only-null' => [], 'transaction' => true, 'id-column' => $bdd->getOption(Bdd::OPTION_ID_COLUMN), 'has-historique' => $hasHistorique, 'histo-user-id' => null, Loading Loading @@ -570,7 +571,9 @@ class Table /* Chargement des données actuelles et traitement */ if ($options['transaction']) { $bdd->beginTransaction(); } $selOptions = $options; $selOptions['fetch'] = Bdd::FETCH_EACH; Loading Loading @@ -647,7 +650,7 @@ class Table } $callbackProgress++; $k = $this->makeKeyArray($o, $key); $this->update($toUpdate, $key, ['ddl' => $ddl]); $this->update($toUpdate, $k, ['ddl' => $ddl]); if ($doCallback) call_user_func($callback, 'update', $callbackProgress, $callbackCount, $toUpdate, $k); break; Loading Loading @@ -686,7 +689,9 @@ class Table } } if ($options['transaction']) { $bdd->commitTransaction(); } return $result; } Loading