Skip to content

Commit 34d81d4

Browse files
author
jfreedman
committed
move jpa tests from sample to public schema
1 parent 5279951 commit 34d81d4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

PgBulkInsert/pgbulkinsert-jpa/src/test/java/de/bytefish/pgbulkinsert/test/jpa/JpaMappingTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private List<SampleEntity> getSampleEntityList(int num) {
242242

243243
private boolean createTable() throws SQLException {
244244

245-
String sqlStatement = "CREATE TABLE sample.unit_test" +
245+
String sqlStatement = "CREATE TABLE public.unit_test" +
246246
" (\n" +
247247
" id int8,\n" +
248248
" int_field int4,\n" +
@@ -259,7 +259,7 @@ private boolean createTable() throws SQLException {
259259
}
260260

261261
private ResultSet getAll() throws SQLException {
262-
String sqlStatement = "SELECT * FROM sample.unit_test";
262+
String sqlStatement = "SELECT * FROM public.unit_test";
263263

264264
Statement statement = connection.createStatement();
265265

@@ -270,7 +270,7 @@ private int getRowCount() throws SQLException {
270270

271271
Statement s = connection.createStatement();
272272

273-
ResultSet r = s.executeQuery(String.format("SELECT COUNT(*) AS rowcount FROM sample.unit_test"));
273+
ResultSet r = s.executeQuery(String.format("SELECT COUNT(*) AS rowcount FROM public.unit_test"));
274274
r.next();
275275
int count = r.getInt("rowcount");
276276
r.close();

PgBulkInsert/pgbulkinsert-jpa/src/test/java/de/bytefish/pgbulkinsert/test/jpa/annotations/PostgresDataTypeTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void writeShortAsIntValueTest() throws SQLException {
8282

8383
private boolean createTable() throws SQLException {
8484

85-
String sqlStatement = "CREATE TABLE sample.unit_test" +
85+
String sqlStatement = "CREATE TABLE public.unit_test" +
8686
" (\n" +
8787
" id int8,\n" +
8888
" int_field int4\n" +
@@ -94,7 +94,7 @@ private boolean createTable() throws SQLException {
9494
}
9595

9696
private ResultSet getAll() throws SQLException {
97-
String sqlStatement = "SELECT * FROM sample.unit_test";
97+
String sqlStatement = "SELECT * FROM public.unit_test";
9898

9999
Statement statement = connection.createStatement();
100100

@@ -105,7 +105,7 @@ private int getRowCount() throws SQLException {
105105

106106
Statement s = connection.createStatement();
107107

108-
ResultSet r = s.executeQuery(String.format("SELECT COUNT(*) AS rowcount FROM sample.unit_test"));
108+
ResultSet r = s.executeQuery(String.format("SELECT COUNT(*) AS rowcount FROM public.unit_test"));
109109
r.next();
110110
int count = r.getInt("rowcount");
111111
r.close();

0 commit comments

Comments
 (0)