mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Fixed error in SQL console with Postgres (#39)
This commit is contained in:
parent
70780de96e
commit
f4dc649a3b
@ -31,6 +31,7 @@ import java.util.Set;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.dao.DataIntegrityViolationException;
|
||||||
import org.springframework.dao.TransientDataAccessResourceException;
|
import org.springframework.dao.TransientDataAccessResourceException;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
@ -319,7 +320,7 @@ public class SnapAdminRepository {
|
|||||||
|
|
||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
} catch (TransientDataAccessResourceException e) {
|
} catch (TransientDataAccessResourceException | DataIntegrityViolationException e) {
|
||||||
// If there's an exception we leave the results as empty
|
// If there's an exception we leave the results as empty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user