Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
bd4de0ad
Commit
bd4de0ad
authored
Apr 10, 2014
by
Matija Obreza
Browse files
Fixed table alias in listAccessionsGeo query
parent
9562e146
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/persistence/domain/GenesysLowlevelRepositoryImpl.java
View file @
bd4de0ad
...
...
@@ -256,8 +256,8 @@ public class GenesysLowlevelRepositoryImpl implements GenesysLowlevelRepository
@Override
public
void
listAccessionsGeo
(
final
ObjectNode
filter
,
RowCallbackHandler
rowCallbackHandler
)
{
final
DirectMysqlQuery
directQuery
=
new
DirectMysqlQuery
(
"accessiongeo"
,
"g"
);
directQuery
.
innerJoin
(
"accession"
,
"a"
,
"a.id=g.accessionId"
);
final
DirectMysqlQuery
directQuery
=
new
DirectMysqlQuery
(
"accessiongeo"
,
"g
eo
"
);
directQuery
.
innerJoin
(
"accession"
,
"a"
,
"a.id=g
eo
.accessionId"
);
directQuery
.
jsonFilter
(
filter
,
new
MethodResolver
()
{
@Override
public
Method
getMethod
(
long
methodId
)
{
...
...
@@ -269,7 +269,7 @@ public class GenesysLowlevelRepositoryImpl implements GenesysLowlevelRepository
@Override
public
PreparedStatement
createPreparedStatement
(
Connection
con
)
throws
SQLException
{
PreparedStatement
stmt
=
con
.
prepareStatement
(
directQuery
.
getQuery
(
"a.id, g.latitude, g.longitude, g.elevation, g.datum, g.uncertainty, g.method, g.version"
));
.
getQuery
(
"a.id, g
eo
.latitude, g
eo
.longitude, g
eo
.elevation, g
eo
.datum, g
eo
.uncertainty, g
eo
.method, g
eo
.version"
));
ArgumentPreparedStatementSetter
apss
=
new
ArgumentPreparedStatementSetter
(
directQuery
.
getParameters
());
apss
.
setValues
(
stmt
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment