@@ -0,0 +1,1922 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.jdbi.v3.core;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.UUID;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A%0Apublic class TestVendorArrays %7B%0A%0A    private void init(Jdbi jdbi) %7B%0A        jdbi.registerArrayElementTypeName(Integer.class, %22int%22)%0A                .registerArrayElementTypeName(String.class, %22varchar%22);%0A    %7D%0A%0A    @Test%0A    public void testHsqlDb() %7B%0A        Jdbi jdbi = Jdbi.create(%22jdbc:hsqldb:mem:%22 + UUID.randomUUID());%0A        init(jdbi);%0A%0A        try (Handle handle = jdbi.open()) %7B%0A            handle.execute(%22create table player_stats (%22 +%0A                    %22name varchar(64) primary key, %22 +%0A                    %22seasons varchar(36) array, %22 +%0A                    %22points int array)%22);%0A            handle.createUpdate(%22insert into player_stats (name,seasons,points) values (?,?,?)%22)%0A                    .bind(0, %22Jack Johnson%22)%0A                    .bind(1, new String%5B%5D%7B%222013-2014%22, %222014-2015%22, %222015-2016%22%7D)%0A                    .bind(2, new Integer%5B%5D%7B42, 51, 50%7D)%0A                    .execute();%0A%0A            String%5B%5D seasons = handle.createQuery(%22select seasons from player_stats%22)%0A                    .bind(%22name%22, %22Jack Johnson%22)%0A                    .mapTo(String%5B%5D.class)%0A                    .findOnly();%0A            assertThat(seasons).containsExactly(%222013-2014%22, %222014-2015%22, %222015-2016%22);%0A        %7D%0A    %7D%0A%7D%0A

Add a test for arrays' support in HSQLDB