渡槽db升级..--渡槽命令行界面版本: 3.3.0 --渡槽工程版本: 3.3.0-b1 *未捕获错误RangeError:无效值:不在0..1114111范围内,包含:-1 * (package:postgres/src/connection_fsm.dart:182:* #0 StringBuffer.writeCharCode PostgreSQLFormat.substitute * #1 Query.sendExtended (包:postgres/src/subsubter.dart:83:29)* #2 Query.sendExtended(包:postgres/src/query.dart:61:38)* #3 _PostgreSQLConnectionStateIdle.processQuery Stacktrace9) * #4 _PostgreSQLConnectionStateIdle.awake (package:postgres/src/connection_fsm.dart:168:14) * #5 (package:aqueduct/src/db/postgresql/postgresql_persistent_store.dart:153 (封装:postgres/src/connection.dart:399:67)* #6 _PostgreSQLExecutionContextMixin.query (封装:postgres/src/connection.dart:318:12)* #7 PostgreSQLPersistentStore.execute #en0#:37) ** #8 (package:aqueduct/src/db/postgresql/postgresql_persistent_store.dart:216:26) * #9 (package:aqueduct/src/cli/commands/db_upgrade.dart:28:52) * #10 CLICommand.process (package:aqueduct/src/db/postgresql/postgresql_persistent_store.dart:216:26)** #11 CLICommand.process (套餐: CLIDatabaseUpgrade.handle CLICommand.process/src/cli/command.dart d.dart:135:12)* #12 main (package:aqueduct/src/cli/command.dart:135:12) * #13 CLICommand.process (file:///C:/Users/khalid/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/aqueduct-3.3.0/bin/aqueduct.dart:9:27) * #14 _startIsolate。(dart:isolate-patch/isolate_patch.dart:299:32) * #15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
发布于 2020-05-04 13:44:31
这是dart 2.8中一个突破性的变化。降级至dart 2.7
发布于 2020-05-26 00:31:38
对我来说效果最好的另一个解决方案是覆盖postgres对渡槽的依赖:
dependencies:
aqueduct: ^3.3.0+1
# other dependencies
dependency_overrides:
postgres: ^2.1.1对于另一个postgres相关问题,也建议使用in their official GitHub issues。
https://stackoverflow.com/questions/61534696
复制相似问题