Skip to content

Commit 0fd8b80

Browse files
committed
Fix api version
1 parent de75069 commit 0fd8b80

2 files changed

Lines changed: 81 additions & 4 deletions

File tree

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
plugins {
2+
id 'java'
23
id 'java-library'
34
id 'maven-publish'
45
id 'signing'
@@ -20,10 +21,10 @@ version = versionMajor + "." + versionMinor + (versionQualifier != '' ? "-" + ve
2021

2122
repositories {
2223
mavenCentral()
24+
mavenLocal()
2325
maven {
2426
url "https://plugins.gradle.org/m2/"
2527
}
26-
mavenLocal()
2728
}
2829

2930
compileJava.options.encoding = "UTF-8"
@@ -56,7 +57,7 @@ def protobufVersion = "3.23.4"
5657

5758
dependencies {
5859
// Prism API files (protobuf files), needs to be implementation due to the prism-api-version.properties
59-
implementation group: 'org.polypheny', name: 'prism', version: '1.4' //1.3
60+
implementation group: 'org.polypheny', name: 'prism', version: '1.10'
6061

6162
// Protobuf
6263
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: protobufVersion

src/test/java/org/polypheny/jdbc/ConnectionTest.java

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,28 +106,104 @@ void testClientProperties() throws SQLException {
106106

107107

108108
@Test
109-
void testMetaData() throws SQLException {
109+
void testMetaDataGetURL() throws SQLException {
110110
DatabaseMetaData meta = con.getMetaData();
111111
meta.getURL();
112+
}
113+
114+
115+
@Test
116+
void testMetaDataGetDatabaseProductName() throws SQLException {
117+
DatabaseMetaData meta = con.getMetaData();
112118
meta.getDatabaseProductName();
119+
}
120+
121+
122+
@Test
123+
void testMetaDataGetCatalogs() throws SQLException {
124+
DatabaseMetaData meta = con.getMetaData();
113125
meta.getCatalogs();
126+
}
127+
128+
129+
@Test
130+
void testMetaDataGetTableTypes() throws SQLException {
131+
DatabaseMetaData meta = con.getMetaData();
114132
meta.getTableTypes();
133+
}
134+
135+
136+
@Test
137+
void testMetaDataGetTypeInfo() throws SQLException {
138+
DatabaseMetaData meta = con.getMetaData();
115139
meta.getTypeInfo();
140+
}
141+
142+
143+
@Test
144+
void testMetaDataGetColumns() throws SQLException {
145+
DatabaseMetaData meta = con.getMetaData();
116146
meta.getColumns( "public", ".*", ".*", ".*" );
147+
}
148+
149+
150+
@Test
151+
void testMetaDataGetStringFunctions() throws SQLException {
152+
DatabaseMetaData meta = con.getMetaData();
117153
meta.getStringFunctions();
154+
}
155+
156+
157+
@Test
158+
void testMetaDataGetSystemFunctions() throws SQLException {
159+
DatabaseMetaData meta = con.getMetaData();
118160
meta.getSystemFunctions();
161+
}
162+
163+
164+
@Test
165+
void testMetaDataGetTimeDateFunctions() throws SQLException {
166+
DatabaseMetaData meta = con.getMetaData();
119167
meta.getTimeDateFunctions();
168+
}
169+
170+
171+
@Test
172+
void testMetaDataGetNumericFunctions() throws SQLException {
173+
DatabaseMetaData meta = con.getMetaData();
120174
meta.getNumericFunctions();
175+
}
176+
177+
178+
@Test
179+
void testMetaDataGetSQLKeywords() throws SQLException {
180+
DatabaseMetaData meta = con.getMetaData();
121181
meta.getSQLKeywords();
122182
}
123183

124184

125185
@Test
126-
void testMetaDataNotStrict() throws SQLException {
186+
void testMetaDataGetProceduresNotStrict() throws SQLException {
127187
try ( Connection con = DriverManager.getConnection( "jdbc:polypheny://127.0.0.1:20590?strict=false", "pa", "" ) ) {
128188
DatabaseMetaData meta = con.getMetaData();
129189
meta.getProcedures( "public", ".*", ".*" );
190+
}
191+
}
192+
193+
194+
@Test
195+
void testMetaDataGetFunctionsNotStrict() throws SQLException {
196+
try ( Connection con = DriverManager.getConnection( "jdbc:polypheny://127.0.0.1:20590?strict=false", "pa", "" ) ) {
197+
DatabaseMetaData meta = con.getMetaData();
130198
meta.getFunctions( "public", ".*", ".*" );
199+
}
200+
}
201+
202+
203+
@Test
204+
void testMetaDataGetSchemasNotStrict() throws SQLException {
205+
try ( Connection con = DriverManager.getConnection( "jdbc:polypheny://127.0.0.1:20590?strict=false", "pa", "" ) ) {
206+
DatabaseMetaData meta = con.getMetaData();
131207
meta.getSchemas( "public", ".*" );
132208
}
133209
}

0 commit comments

Comments
 (0)