Skip to content
Snippets Groups Projects
Unverified Commit 9548f23e authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #2223 from jayaramcs/develop

 Bug fix. Prepared statement with generated keys
parents c4d0b529 8f8c319b
No related branches found
No related tags found
No related merge requests found
...@@ -4335,8 +4335,8 @@ void addBlackBoardAttribute(BlackboardAttribute attr, int artifactTypeId, CaseDb ...@@ -4335,8 +4335,8 @@ void addBlackBoardAttribute(BlackboardAttribute attr, int artifactTypeId, CaseDb
} }
void addFileAttribute(Attribute attr, CaseDbConnection connection) throws SQLException, TskCoreException { void addFileAttribute(Attribute attr, CaseDbConnection connection) throws SQLException, TskCoreException {
PreparedStatement statement; PreparedStatement statement;
statement = connection.getPreparedStatement(PREPARED_STATEMENT.INSERT_FILE_ATTRIBUTE); statement = connection.getPreparedStatement(PREPARED_STATEMENT.INSERT_FILE_ATTRIBUTE, Statement.RETURN_GENERATED_KEYS);
statement.clearParameters(); statement.clearParameters();
   
statement.setLong(1, attr.getAttributeParentId()); statement.setLong(1, attr.getAttributeParentId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment