Loading CHANGELOG.md +3 −0 Original line number Diff line number Diff line Changelog ========= 7.2.2 ----- - Paramètre code des exceptions null deprecated, remplacements des exception par Exception("message', previous: $e); 7.2.1 ----- Loading src/UnicaenDbImport/CodeGenerator/CodeGenerator.php +5 −5 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableValidationHelper->convertTableExistenceCheckResultToBoolean($result); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -169,7 +169,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableValidationHelper->convertHistoColumnsValidationBadResultToException($tableName, $result, $columnCount); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -272,7 +272,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableHelper->generateSQLForInsertOneRowIntoTable($tableName, $row, $sourceCode, $idColumnStrategy, $idColumnSequence); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée lors de la génération SQL", null, $e); throw new RuntimeException("Erreur rencontrée lors de la génération SQL", previous: $e); } } Loading @@ -295,7 +295,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->logTableHelper->generateSQLForLogTableCreation($logTableName); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -454,7 +454,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->logTableHelper->generateSQLForInsertResultIntoLogTable($result, $importLogTable); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading src/UnicaenDbImport/CodeGenerator/Helper/LogTableHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ EOT; try { $hash = $result->getHash(); } catch (Exception $e) { throw new HelperException("Erreur lors de la génération du hash !", null, $e); throw new HelperException("Erreur lors de la génération du hash !", previous: $e); } $sql = "INSERT INTO $logTableName (type, name, success, has_problems, log, started_on, ended_on, import_hash) "; Loading src/UnicaenDbImport/CodeGenerator/Helper/TableValidationHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ EOT; try { $timestamp = $this->platform->getDateTimeTypeDeclarationSQL([]); } catch (Exception $e) { throw new HelperException("Type non supporté par la plateforme de base de données !", null, $e); throw new HelperException("Type non supporté par la plateforme de base de données !", previous: $e); } $integer = $this->platform->getBigIntTypeDeclarationSQL([]); $now = $this->platform->getNowExpression(); Loading src/UnicaenDbImport/CodeGenerator/Oracle/Helper/TableHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class TableHelper extends \UnicaenDbImport\CodeGenerator\Helper\TableHelper try { $setters = $this->generateSQLUpdateSetters($operation, $columns); } catch (HelperException $e) { throw new RuntimeException("Erreur rencontrée lors de la génération SQL", null, $e); throw new RuntimeException("Erreur rencontrée lors de la génération SQL", previous: $e); } $wheres = null; Loading Loading
CHANGELOG.md +3 −0 Original line number Diff line number Diff line Changelog ========= 7.2.2 ----- - Paramètre code des exceptions null deprecated, remplacements des exception par Exception("message', previous: $e); 7.2.1 ----- Loading
src/UnicaenDbImport/CodeGenerator/CodeGenerator.php +5 −5 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableValidationHelper->convertTableExistenceCheckResultToBoolean($result); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -169,7 +169,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableValidationHelper->convertHistoColumnsValidationBadResultToException($tableName, $result, $columnCount); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -272,7 +272,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->tableHelper->generateSQLForInsertOneRowIntoTable($tableName, $row, $sourceCode, $idColumnStrategy, $idColumnSequence); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée lors de la génération SQL", null, $e); throw new RuntimeException("Erreur rencontrée lors de la génération SQL", previous: $e); } } Loading @@ -295,7 +295,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->logTableHelper->generateSQLForLogTableCreation($logTableName); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading Loading @@ -454,7 +454,7 @@ abstract class CodeGenerator implements CodeGeneratorInterface try { return $this->logTableHelper->generateSQLForInsertResultIntoLogTable($result, $importLogTable); } catch (Helper\HelperException $e) { throw new RuntimeException("Erreur rencontrée !", null, $e); throw new RuntimeException("Erreur rencontrée !", previous: $e); } } Loading
src/UnicaenDbImport/CodeGenerator/Helper/LogTableHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ EOT; try { $hash = $result->getHash(); } catch (Exception $e) { throw new HelperException("Erreur lors de la génération du hash !", null, $e); throw new HelperException("Erreur lors de la génération du hash !", previous: $e); } $sql = "INSERT INTO $logTableName (type, name, success, has_problems, log, started_on, ended_on, import_hash) "; Loading
src/UnicaenDbImport/CodeGenerator/Helper/TableValidationHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ EOT; try { $timestamp = $this->platform->getDateTimeTypeDeclarationSQL([]); } catch (Exception $e) { throw new HelperException("Type non supporté par la plateforme de base de données !", null, $e); throw new HelperException("Type non supporté par la plateforme de base de données !", previous: $e); } $integer = $this->platform->getBigIntTypeDeclarationSQL([]); $now = $this->platform->getNowExpression(); Loading
src/UnicaenDbImport/CodeGenerator/Oracle/Helper/TableHelper.php +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ class TableHelper extends \UnicaenDbImport\CodeGenerator\Helper\TableHelper try { $setters = $this->generateSQLUpdateSetters($operation, $columns); } catch (HelperException $e) { throw new RuntimeException("Erreur rencontrée lors de la génération SQL", null, $e); throw new RuntimeException("Erreur rencontrée lors de la génération SQL", previous: $e); } $wheres = null; Loading