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

Running verify tasks prints "Could not retrieve functions" #1348

Closed
benasher44 opened this issue May 29, 2019 · 1 comment · Fixed by #1429
Closed

Running verify tasks prints "Could not retrieve functions" #1348

benasher44 opened this issue May 29, 2019 · 1 comment · Fixed by #1429

Comments

@benasher44
Copy link
Contributor

> Task :verifyIosSimMainPGDatabaseMigration`
Could not retrieve functions

We don't have any migrations yet. Is that what it means? Could this message be improved?

@lfielke
Copy link
Contributor

lfielke commented Jul 9, 2019

This also happens for me in 1.1.3 and current master (b07dace).

Running gradle with --debug shows a stacktrace, which might be helpful:

14:01:24.597 [WARN] [unknown.jul.logger] Could not retrieve functions
14:01:24.597 [DEBUG] [unknown.jul.logger] Could not retrieve functions
java.sql.SQLFeatureNotSupportedException
	at org.sqlite.jdbc4.JDBC4DatabaseMetaData.getFunctions(JDBC4DatabaseMetaData.java:50)
	at schemacrawler.crawl.RoutineRetriever.retrieveFunctions(RoutineRetriever.java:200)
	at schemacrawler.crawl.SchemaCrawler$8.call(SchemaCrawler.java:304)
	at sf.util.StopWatch.time(StopWatch.java:187)
	at schemacrawler.crawl.SchemaCrawler.crawlRoutines(SchemaCrawler.java:295)
	at schemacrawler.crawl.SchemaCrawler.crawl(SchemaCrawler.java:877)
	at schemacrawler.utility.SchemaCrawlerUtility.getCatalog(SchemaCrawlerUtility.java:75)
	at com.squareup.sqlite.migrations.CatalogDatabase$Companion.fromFile(CatalogDatabase.kt:27)
	at com.squareup.sqlite.migrations.CatalogDatabase$Companion.withInitStatements(CatalogDatabase.kt:22)
	at com.squareup.sqldelight.gradle.VerifyMigrationTask.createCurrentDb(VerifyMigrationTask.kt:54)
	at com.squareup.sqldelight.gradle.VerifyMigrationTask.verifyMigrations(VerifyMigrationTask.kt:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
	...

It might be that SQLite doesn't support stored functions in the database (routines in schemacrawler?), so that part is failing.

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 a pull request may close this issue.

2 participants