Skip to content

Commit

Permalink
1.2.1 for log4j2
Browse files Browse the repository at this point in the history
  • Loading branch information
sproket committed Dec 11, 2021
1 parent bfdb015 commit 542aca1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.sproket</groupId>
<artifactId>persism</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<packaging>jar</packaging>

<build>
Expand Down Expand Up @@ -273,13 +273,13 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.13.0</version>
<version>2.15.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.0</version>
<version>2.15.0</version>
<scope>provided</scope>
</dependency>

Expand Down
3 changes: 3 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Release Notes

### 1.2.1
* Update log4j2 reference in POM to 2.15.0

### 1.2.0
* Added support for Views
* Added query 'select *' method to session
Expand Down
6 changes: 5 additions & 1 deletion src/net/sf/persism/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,11 @@ void setParameters(PreparedStatement st, Object[] parameters) throws SQLExceptio

} else {
// param is null
st.setObject(n, param);
if (metaData.getConnectionType() == ConnectionTypes.UCanAccess) {
st.setNull(n, java.sql.Types.OTHER);
} else {
st.setObject(n, null);
}
}

n++;
Expand Down
2 changes: 1 addition & 1 deletion test/net/sf/persism/TestMSAccess.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void testContact() throws SQLException, IOException {
// add to the array?
// attachments = contact.getAttachments();
List<Attachment> attachmentList = new ArrayList<>(Arrays.asList(attachments));
Attachment attachment = new Attachment(null, "test", "png", null, new Date(System.currentTimeMillis()), 0);
Attachment attachment = new Attachment(null, "test", "png", null, new Date(), 0);

BufferedImage img = ImageIO.read(Objects.requireNonNull(getClass().getResourceAsStream("/logo1.png")));
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Expand Down

0 comments on commit 542aca1

Please sign in to comment.