We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40bdf5 commit c1e2533Copy full SHA for c1e2533
totum/common/CalculateAction.php
@@ -104,6 +104,9 @@ protected function funcSchemaGzStringUpload($params)
104
file_get_contents($tmpFileName2)));
105
106
$tmpErrors = tempnam(Conf::getTmpLoadedFilesDir(), 'schema_errors_');
107
+
108
+ Sql::transactionRollBack();
109
110
`$pathPsql --dbname="$dbConnect" -q -1 -b -v ON_ERROR_STOP=1 -f $tmpFileName 2>$tmpErrors`;
111
if ($errors = file_get_contents($tmpErrors)) {
112
throw new errorException($errors);
0 commit comments