Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
51ec99e4
Commit
51ec99e4
authored
15 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
change: adapt to new interface of copyAPI of driver 8.4-701
SVN: 11628
parent
ef5570f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLMassUploader.java
+5
-4
5 additions, 4 deletions
...x/cisd/dbmigration/postgresql/PostgreSQLMassUploader.java
with
5 additions
and
4 deletions
dbmigration/source/java/ch/systemsx/cisd/dbmigration/postgresql/PostgreSQLMassUploader.java
+
5
−
4
View file @
51ec99e4
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment