Skip to content

Commit

Permalink
Merge pull request #46 from austinarbor/releases/3.47.1.0
Browse files Browse the repository at this point in the history
Prepare 3.47.1.0
  • Loading branch information
austinarbor authored Nov 30, 2024
2 parents 536bf49 + eda7882 commit b959818
Show file tree
Hide file tree
Showing 31 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .fork-meta/upstream-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.47.0.0
3.47.1.0
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:https://img.shields.io/maven-central/v/dev.aga.sqlite/sqlite-jdbc?color=g&
_Everything below this line comes from the original repository._

= SQLite JDBC Driver
:project-version: 3.47.0.0
:project-version: 3.47.1.0

image:https://img.shields.io/github/actions/workflow/status/xerial/sqlite-jdbc/ci.yml?branch=master[GitHub Workflow Status (branch),link=https://github.com/xerial/sqlite-jdbc/actions/workflows/ci.yml?query=branch%3Amaster]
image:https://badges.gitter.im/xerial/sqlite-jdbc.svg[Join the chat,link=https://gitter.im/xerial/sqlite-jdbc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
Expand Down Expand Up @@ -123,7 +123,7 @@ the following operating systems:
|macOS | |✔ | | | |✔ | |
|Linux (libc) |✔ |✔ |✔ |✔ |✔ |✔ |✔ |✔
|Linux (musl) |✔ |✔ | | | |✔ | |
|Android |✔ |✔ |✔ | | |✔ | |
|Android (API Level 24+) |✔ |✔ |✔ | | |✔ | |
|FreeBSD |✔ |✔ | | | |✔ | |
|===

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=3.47.0
version=3.47.1
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>dev.aga.sqlite</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.47.0.0</version>
<version>3.47.1.0</version>
<name>SQLite JDBC</name>
<description>SQLite JDBC library</description>
<url>https://github.com/austinarbor/sqlite-jdbc</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.11.3</junit.version>
<surefire.version>3.5.1</surefire.version>
<surefire.version>3.5.2</surefire.version>
<archunit.version>1.3.0</archunit.version>
<graalvm.version>24.1.1</graalvm.version>
<java9.sourceDirectory>${project.basedir}/src/main/java9</java9.sourceDirectory>
Expand Down Expand Up @@ -185,15 +185,15 @@
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.14.0</version>
<version>1.15.0</version>
<configuration>
<configFile>jreleaser.yml</configFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.17.1</version>
<version>2.18.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -278,7 +278,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.1</version>
<version>3.11.1</version>
<configuration>
<sourcepath>src/main/java</sourcepath>
<additionalOptions>-Xdoclint:none</additionalOptions>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/sqlite/ExtendedCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static String removeQuotation(String s) {
if (s == null) return s;

if ((s.startsWith("\"") && s.endsWith("\"")) || (s.startsWith("'") && s.endsWith("'")))
return s.substring(1, s.length() - 1);
return (s.length() >= 2) ? s.substring(1, s.length() - 1) : s;
else return s;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module org.xerial.sqlitejdbc {

requires org.slf4j;
requires static org.slf4j;
requires transitive java.sql;
requires transitive java.sql.rowset;
requires static org.graalvm.nativeimage;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/main/resources/org/sqlite/native/Linux/ppc64/libsqlitejdbc.so
Binary file not shown.
Binary file not shown.
Binary file modified src/main/resources/org/sqlite/native/Linux/x86/libsqlitejdbc.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/main/resources/org/sqlite/native/Windows/x86/sqlitejdbc.dll
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions src/test/java/org/sqlite/ExtendedCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
import static org.assertj.core.api.Assertions.assertThat;

import java.sql.SQLException;
import java.util.stream.Stream;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.sqlite.ExtendedCommand.BackupCommand;
import org.sqlite.ExtendedCommand.RestoreCommand;
import org.sqlite.ExtendedCommand.SQLExtension;
Expand Down Expand Up @@ -69,4 +73,22 @@ public void parseRestoreCmd() throws SQLException {
assertThat(b.targetDB).isEqualTo("main");
assertThat(b.srcFile).isEqualTo("target/sample.db");
}

@ParameterizedTest
@MethodSource
public void removeQuotation(String input, String expected) throws SQLException {
assertThat(ExtendedCommand.removeQuotation(input)).isEqualTo(expected);
}

private static Stream<Arguments> removeQuotation() {
return Stream.of(
Arguments.of(null, null), // Null String
Arguments.of("'", "'"), // String with one single quotation only
Arguments.of("\"", "\""), // String with one double quotation only
Arguments.of("'Test\"", "'Test\""), // String with two mismatch quotations
Arguments.of("'Test'", "Test"), // String with two matching single quotations
Arguments.of("\"Test\"", "Test"), // String with two matching double quotations
Arguments.of("'Te's\"t'", "Te's\"t") // String with more than two quotations
);
}
}

0 comments on commit b959818

Please sign in to comment.