Fixed
Status Update
Comments
el...@google.com <el...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit fa8f0c947fc570b5338e75ad3a5b669a49f35695
Author: Elif Bilgin <elifbilgin@google.com>
Date: Fri Mar 12 04:09:51 2021
Resolving bug where defaultValue with parenthesis fails onValidateSchema.
Test: MigrationTest.java
Bug: 182284899
Change-Id: I845abfa898cfc579e0def75c901ca234999f059f
A room/integration-tests/testapp/schemas/androidx.room.integration.testapp.migration.MigrationDb/13.json
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/MigrationDb.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/MigrationTest.java
M room/runtime/api/restricted_current.txt
M room/runtime/src/androidTest/java/androidx/room/migration/TableInfoTest.java
M room/runtime/src/main/java/androidx/room/util/TableInfo.java
https://android-review.googlesource.com/1630083
Branch: androidx-main
commit fa8f0c947fc570b5338e75ad3a5b669a49f35695
Author: Elif Bilgin <elifbilgin@google.com>
Date: Fri Mar 12 04:09:51 2021
Resolving bug where defaultValue with parenthesis fails onValidateSchema.
Test: MigrationTest.java
Bug: 182284899
Change-Id: I845abfa898cfc579e0def75c901ca234999f059f
A room/integration-tests/testapp/schemas/androidx.room.integration.testapp.migration.MigrationDb/13.json
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/MigrationDb.java
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/MigrationTest.java
M room/runtime/api/restricted_current.txt
M room/runtime/src/androidTest/java/androidx/room/migration/TableInfoTest.java
M room/runtime/src/main/java/androidx/room/util/TableInfo.java
el...@google.com <el...@google.com>
pa...@gmail.com <pa...@gmail.com> #3
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
org.codehaus.groovy.ast.expr.TupleExpression cannot be cast to org.codehaus.groovy.ast.expr.ArgumentListExpression
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Description
Component used: Room Persistence Library Version used: 2.2.5
Here is an example column with a default value using parentheses
This schema fails in onValidateSchema because
PRAGMA table_info(<table>)
returnsstrftime('%s','now') * 1000
fordflt_value
which is then compared to(strftime('%s','now') * 1000)
and so it fails.