Commit 9959261
Fix/skill top param pattern (Teradata#330)
* 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>1 parent 626f7ab commit 9959261
3 files changed
Lines changed: 2672 additions & 2627 deletions
File tree
- agentic/skills/teradata-mcp-customisation
- examples
- reference
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
| |||
0 commit comments