Skip to content

Fix/skill top param pattern#330

Merged
remi-td merged 2 commits into
mainfrom
fix/skill-top-param-pattern
May 28, 2026
Merged

Fix/skill top param pattern#330
remi-td merged 2 commits into
mainfrom
fix/skill-top-param-pattern

Conversation

@remi-td

@remi-td remi-td commented May 28, 2026

Copy link
Copy Markdown
Collaborator

better examples in customisation skill for parameter handling

remi-td and others added 2 commits May 28, 2026 17:41
… skill

Teradata's parser rejects TOP followed by a bind-parameter placeholder (error 3707).
The example_tool.yml and the "Mixing styles" section of parameter-substitution.md
both used TOP :n, which is what caused the generated dba_running_sessions tool to
fail on first use. Replaced with a derived-table + ROW_NUMBER() + WHERE rn <= :n
pattern, which is safe for prepared statements. Added an explicit warning callout
in the reference doc covering TOP :n, TOP {n} (fragile), and SAMPLE :n.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@remi-td remi-td merged commit 0c54512 into main May 28, 2026
5 checks passed
@remi-td remi-td deleted the fix/skill-top-param-pattern branch May 28, 2026 15:50
dtehan-td pushed a commit to dtehan-td/teradata-mcp-server that referenced this pull request Jun 8, 2026
* fix(skill): replace TOP :n with ROW_NUMBER() pattern in customisation skill

Teradata's parser rejects TOP followed by a bind-parameter placeholder (error 3707).
The example_tool.yml and the "Mixing styles" section of parameter-substitution.md
both used TOP :n, which is what caused the generated dba_running_sessions tool to
fail on first use. Replaced with a derived-table + ROW_NUMBER() + WHERE rn <= :n
pattern, which is safe for prepared statements. Added an explicit warning callout
in the reference doc covering TOP :n, TOP {n} (fragile), and SAMPLE :n.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* corrected SQL examples

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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 this pull request may close these issues.

1 participant