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
cf72d15e
Commit
cf72d15e
authored
9 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-2601: bug in SampleQuery (SQL query) fixed
SVN: 35045
parent
f622fc76
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java
+2
-2
2 additions, 2 deletions
...is/generic/server/api/v3/executor/sample/SampleQuery.java
with
2 additions
and
2 deletions
openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java
+
2
−
2
View file @
cf72d15e
...
@@ -48,13 +48,13 @@ public interface SampleQuery extends ObjectQuery
...
@@ -48,13 +48,13 @@ public interface SampleQuery extends ObjectQuery
String
[]
codes
);
String
[]
codes
);
@Select
(
sql
=
"select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id "
@Select
(
sql
=
"select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id "
+
"where sp.code = ?{1} and proj_id is null and samp_id_part_of is null and s.code = any(?{2})"
,
+
"where sp.code = ?{1} and
s.
proj_id is null and samp_id_part_of is null and s.code = any(?{2})"
,
parameterBindings
=
{
TypeMapper
.
class
,
StringArrayMapper
.
class
},
fetchSize
=
FETCH_SIZE
)
parameterBindings
=
{
TypeMapper
.
class
,
StringArrayMapper
.
class
},
fetchSize
=
FETCH_SIZE
)
public
List
<
TechIdStringIdentifierRecord
>
listSpaceSampleTechIdsByCodes
(
String
spaceCode
,
String
[]
codes
);
public
List
<
TechIdStringIdentifierRecord
>
listSpaceSampleTechIdsByCodes
(
String
spaceCode
,
String
[]
codes
);
@Select
(
sql
=
"select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id "
@Select
(
sql
=
"select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id "
+
"join samples cs on s.samp_id_part_of = cs.id "
+
"join samples cs on s.samp_id_part_of = cs.id "
+
"where sp.code = ?{1} and proj_id is null and cs.code = ?{2} and s.code = any(?{3})"
,
parameterBindings
=
+
"where sp.code = ?{1} and
s.
proj_id is null and cs.code = ?{2} and s.code = any(?{3})"
,
parameterBindings
=
{
TypeMapper
.
class
,
TypeMapper
.
class
,
StringArrayMapper
.
class
},
fetchSize
=
FETCH_SIZE
)
{
TypeMapper
.
class
,
TypeMapper
.
class
,
StringArrayMapper
.
class
},
fetchSize
=
FETCH_SIZE
)
public
List
<
TechIdStringIdentifierRecord
>
listSpaceSampleTechIdsByContainerCodeAndCodes
(
String
spaceCode
,
public
List
<
TechIdStringIdentifierRecord
>
listSpaceSampleTechIdsByContainerCodeAndCodes
(
String
spaceCode
,
String
containerCode
,
String
[]
codes
);
String
containerCode
,
String
[]
codes
);
...
...
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