mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
Merge pull request #829 from stefanneuhaus/fix-postgres-save-properties
Fix save_properties on Postgres
This commit is contained in:
@@ -512,7 +512,7 @@ public final class CveDB implements AutoCloseable {
|
||||
if (mergeProperty != null) {
|
||||
mergeProperty.setString(1, key);
|
||||
mergeProperty.setString(2, value);
|
||||
mergeProperty.executeUpdate();
|
||||
mergeProperty.execute();
|
||||
} else {
|
||||
// No Merge statement, so doing an Update/Insert...
|
||||
final PreparedStatement updateProperty = getPreparedStatement(UPDATE_PROPERTY);
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
MERGE_PROPERTY=CALL save_property(?, ?)
|
||||
CLEANUP_ORPHANS=DELETE FROM cpeEntry WHERE id IN (SELECT id FROM cpeEntry LEFT JOIN software ON cpeEntry.id = software.CPEEntryId WHERE software.CPEEntryId IS NULL);
|
||||
MERGE_PROPERTY=SELECT save_property(?, ?)
|
||||
CLEANUP_ORPHANS=DELETE FROM cpeEntry WHERE id IN (SELECT id FROM cpeEntry LEFT JOIN software ON cpeEntry.id = software.CPEEntryId WHERE software.CPEEntryId IS NULL);
|
||||
|
||||
Reference in New Issue
Block a user