Skip to content
Snippets Groups Projects
Commit 51ec99e4 authored by brinn's avatar brinn
Browse files

change: adapt to new interface of copyAPI of driver 8.4-701

SVN: 11628
parent ef5570f3
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ public class PostgreSQLMassUploader extends SimpleJdbcDaoSupport implements IMas ...@@ -67,7 +67,8 @@ public class PostgreSQLMassUploader extends SimpleJdbcDaoSupport implements IMas
* Creates an instance for the specified data source and sequence mapper. * Creates an instance for the specified data source and sequence mapper.
*/ */
public PostgreSQLMassUploader(final DataSource dataSource, public PostgreSQLMassUploader(final DataSource dataSource,
final ISequenceNameMapper sequenceNameMapper, boolean sequenceUpdateNeeded) throws SQLException final ISequenceNameMapper sequenceNameMapper, boolean sequenceUpdateNeeded)
throws SQLException
{ {
this.dataSource = dataSource; this.dataSource = dataSource;
this.sequenceNameMapper = sequenceNameMapper; this.sequenceNameMapper = sequenceNameMapper;
...@@ -130,11 +131,11 @@ public class PostgreSQLMassUploader extends SimpleJdbcDaoSupport implements IMas ...@@ -130,11 +131,11 @@ public class PostgreSQLMassUploader extends SimpleJdbcDaoSupport implements IMas
{ {
if (tsvFileType) if (tsvFileType)
{ {
getCopyManager().copyIn(tableName, is); getCopyManager().copyIn("COPY " + tableName + " FROM STDIN", is);
} else } else
{ {
getCopyManager().copyInQuery( getCopyManager()
"COPY " + tableName + " FROM STDIN WITH CSV HEADER", is); .copyIn("COPY " + tableName + " FROM STDIN WITH CSV HEADER", is);
} }
tables.add(tableName); tables.add(tableName);
} finally } finally
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment