Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usage of removed db.indexes() with SHOW INDEXES #2326

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

burqen
Copy link

@burqen burqen commented Nov 12, 2021

No description provided.

@@ -229,7 +229,7 @@ private void exportSchema(PrintWriter out) {
}

private List<String> exportIndexes() {
return db.executeTransactionally("CALL db.indexes()", Collections.emptyMap(), result -> result.stream()
return db.executeTransactionally("SHOW INDEXES", Collections.emptyMap(), result -> result.stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we presume that the result columns have not changed between these two calls?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, there is one change: "provider" is replaced by "indexProvider"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But from what I could see in this method we never care about that field so I think we are good.

@burqen
Copy link
Author

burqen commented Nov 17, 2021

Amended some updates. Ping @Lojjs

@burqen
Copy link
Author

burqen commented Nov 17, 2021

@burqen
Copy link
Author

burqen commented Nov 17, 2021

... well... shit... I can't merge either...

@Lojjs Lojjs merged commit 43a22f4 into neo4j-contrib:dev Nov 17, 2021
@burqen burqen deleted the 5.0-ap-show-indexes branch November 17, 2021 15:25
@Lojjs
Copy link
Contributor

Lojjs commented Nov 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants