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

Error: 1551 - AQL: no value specified for declared bind parameter 'b' #1346

Closed
wajda opened this issue Jul 4, 2024 · 0 comments · Fixed by #1347
Closed

Error: 1551 - AQL: no value specified for declared bind parameter 'b' #1346

wajda opened this issue Jul 4, 2024 · 0 comments · Fixed by #1347

Comments

@wajda
Copy link
Contributor

wajda commented Jul 4, 2024

Executing database migration via Admin CLI results in the following error:

$ java -jar admin/target/admin-1.0.0-SNAPSHOT.jar db-upgrade arangodb://localhost/spline

[2024-07-05 00:45:50.837] DEBUG [scala-execution-context-global-16] z.c.a.s.p.tx.JSTxBuilder       -
function (_params) {
  const _db = require('internal').db;
  _db._query(`
    WITH dbVersion
    FOR a IN dbVersion
        FILTER a.status == 'current'
        UPDATE a._key WITH @b IN dbVersion
  `, {"b": _params[0]});
  _db._query(`
    WITH dbVersion
    FOR a IN dbVersion
        FILTER a.status == 'preparing'
        UPDATE a._key WITH @b IN dbVersion
  `, {"b": _params[1]});
}

[2024-07-05 00:45:50.839] DEBUG [pool-3-thread-1] c.a.a.i.v.VstCommunicationAsync - Send Message (id=14, head=[1,1,"spline",2,"/_api/transaction",{},{"x-arango-driver":"JavaDriver/6.25.0 (JVM/11)","content-type":"application/x-velocypack","accept":"application/x-velocypack"}], body={"action":"\nfunction (_params) {\n  const _db = require('internal').db;\n  _db._query(`\n    WITH dbVersion\n    FOR a IN dbVersion\n        FILTER a.status == 'current'\n        UPDATE a._key WITH @b IN dbVersion\n  `, {\"b\": _params[0]});\n  _db._query(`\n    WITH dbVersion\n    FOR a IN dbVersion\n        FILTER a.status == 'preparing'\n        UPDATE a._key WITH @b IN dbVersion\n  `, {\"b\": _params[1]});\n}\n","collections":{"allowImplicit":false,"write":["dbVersion"]},"params":{"prefix1":[{"status":"upgraded"},{"status":"current"}],"_class":"scala.collection.immutable.Vector1"}})
@wajda wajda added this to the 1.0.0 milestone Jul 4, 2024
@wajda wajda self-assigned this Jul 4, 2024
@cerveada cerveada added this to Spline Jul 4, 2024
@github-project-automation github-project-automation bot moved this to New in Spline Jul 4, 2024
@wajda wajda moved this from New to In Progress in Spline Jul 4, 2024
wajda added a commit that referenced this issue Jul 4, 2024
@wajda wajda moved this from In Progress to Review / PR Created in Spline Jul 5, 2024
wajda added a commit that referenced this issue Jul 8, 2024
@github-project-automation github-project-automation bot moved this from Review / PR Created to Done in Spline Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant