Skip to content

Commit 9a1c71c

Browse files
committed
reduced number of tests for old client
1 parent 3051a2a commit 9a1c71c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
project: ["clickhouse-http-client", "client-v2"]
150150
fail-fast: false
151151
timeout-minutes: 15
152-
name: Java client + CH ${{ matrix.clickhouse }}
152+
name: Java client ( ${{ matrix.project }} ) + CH ${{ matrix.clickhouse }}
153153
steps:
154154
- name: Check out repository
155155
uses: actions/checkout@v4
@@ -267,7 +267,8 @@ jobs:
267267
matrix:
268268
clickhouse: ["23.8", "24.3", "24.6", "latest"]
269269
# here http, http_client and apache_http_client represent different value of http_connection_provider
270-
protocol: ["http", "http_client", "apache_http_client"]
270+
# protocol: ["http", "http_client", "apache_http_client"]
271+
protocol: ["apache_http_client"]
271272
fail-fast: false
272273
timeout-minutes: 15
273274
name: JDBC driver + CH ${{ matrix.clickhouse }} (${{ matrix.protocol }})

jdbc-v2/src/test/java/com/clickhouse/jdbc/StatementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void testJdbcEscapeSyntax() throws Exception {
291291
try (ResultSet rs = stmt.executeQuery("SELECT {d '2021-11-01'} AS D, {ts '2021-08-01 12:34:56'} AS TS, " +
292292
"toInt32({fn ABS(-1)}) AS FNABS, {fn CONCAT('Hello', 'World')} AS FNCONCAT, {fn UCASE('hello')} AS FNUPPER, " +
293293
"{fn LCASE('HELLO')} AS FNLOWER, {fn LTRIM(' Hello ')} AS FNLTRIM, {fn RTRIM(' Hello ')} AS FNRTRIM, " +
294-
"toInt32({fn LENGTH('Hello')}) AS FNLENGTH, toInt32({fn LOCATE('Hello', 'l')}) AS FNLOCATE, toInt32({fn MOD(10, 3)}) AS FNMOD, " +
294+
"toInt32({fn LENGTH('Hello')}) AS FNLENGTH, toInt32({fn POSITION('Hello', 'l')}) AS FNPOSITION, toInt32({fn MOD(10, 3)}) AS FNMOD, " +
295295
"{fn SQRT(9)} AS FNSQRT, {fn SUBSTRING('Hello', 3, 2)} AS FNSUBSTRING")) {
296296
assertTrue(rs.next());
297297
assertEquals(rs.getDate(1), Date.valueOf(LocalDate.of(2021, 11, 1)));
@@ -311,7 +311,7 @@ public void testJdbcEscapeSyntax() throws Exception {
311311
assertEquals(rs.getInt(9), 5);
312312
assertEquals(rs.getInt("FNLENGTH"), 5);
313313
assertEquals(rs.getInt(10), 3);
314-
assertEquals(rs.getInt("FNLOCATE"), 3);
314+
assertEquals(rs.getInt("FNPOSITION"), 3);
315315
assertEquals(rs.getInt(11), 1);
316316
assertEquals(rs.getInt("FNMOD"), 1);
317317
assertEquals(rs.getDouble(12), 3);

0 commit comments

Comments
 (0)