Skip to content

Commit 181a9f1

Browse files
author
mpv1989
committed
Fix ArangoOperations#getVersion()
use configured database instead of _system
1 parent a907d96 commit 181a9f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1414
- Check `Persistable#isNew`
1515
- fixed `ArangoOperations#upsert(Iterable<T>, UpsertStrategy)` (issue #92)
1616
- Check `Persistable#isNew`
17+
- fixed `ArangoOperations#getVersion()` use configured database instead of _system
1718

1819
## [2.2.0] - 2018-07-02
1920

src/main/java/com/arangodb/springframework/core/template/ArangoTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public ArangoDB driver() {
294294
public ArangoDBVersion getVersion() throws DataAccessException {
295295
try {
296296
if (version == null) {
297-
version = arango.getVersion();
297+
version = db().getVersion();
298298
}
299299
return version;
300300
} catch (final ArangoDBException e) {

0 commit comments

Comments
 (0)