GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Bindings: more positional values than placeholders is a TypeError, not a silently dropped value by tae898 · Pull Request #52 · ArcadeData/arcadedb-python Conversation
Collaborator
What
Port of humemai/arcadedb-embedded-python#536. Behaviour changeA The count is an upper bound taken from the Tests
DocsThis repository has one page on parameters, Checked locally
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsquery("sql", "... WHERE @Rid IN ?", [rid_a, rid_b]) reads the lone list as the positional-parameter list, one element per ?. The statement has one ?, so the engine binds rid_a, drops rid_b without a word, and returns one row where two were meant. The engine does not count positional values (ArcadeData/arcadedb#10721), so Database.query() and command() now raise TypeError before the statement runs when a SQL or SQLScript call has more positional values than the text can bind. The count is an upper bound taken from the ?, $ and : characters of the text, so a call that binds is never refused.
The message names both ways out: wrap the list, [[a, b]], or bind it by name, IN :ids. test_parameter_binding.py passed values to SELECT 1 (no placeholder) and now uses SELECT ?, ?. The how-to page documents the behaviour.
Port of humemai/arcadedb-embedded-python#536.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
tae898
added a commit
that referenced
this pull request
…on never replays a partly committed block Three Python-only ports from humemai/arcadedb-embedded-python native-preview (#537, #531, #527): - NativeDatabase._exec calls refuse_surplus_positionals (already shared with the JVM build, PR #52): more positional values than the SQL text can hold is a TypeError, not a silently dropped value. - The native RID class offers the Java RID surface (ordering, getBucketId, getPosition, toString, isValid, equals, compareTo) and Result.get_rid() reads a projected @Rid. - run_in_transaction: the guard that refuses to replay a block whose BATCH boundary or commit() already made part of its work durable sat inside a try whose own except swallowed the raise. The raise moves outside it. New test tests/test_run_in_transaction_partial_commit.py runs on both builds. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |