Commit d4cd05a
committed
Fix unclosed bracket doubling last char and set operation SQL generation
- raHighlight.ts: Check that code[newI-1] is actually a bracket char
before rendering it as a closing bracket. Previously, unclosed brackets
like PI[name, city would render the last content char twice (cityy).
- relationalAlgebra.ts: Add asSelect() helper to wrap bare table names
in SELECT * FROM for UNION/INTERSECT/EXCEPT operations. Previously
Person-Teacher generated "Person EXCEPT Teacher" which SQLite rejected.
https://claude.ai/code/session_01TJyw8nESra9cc5RpVUpmt61 parent e77e6ab commit d4cd05a
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1060 | 1067 | | |
1061 | 1068 | | |
1062 | 1069 | | |
| |||
1152 | 1159 | | |
1153 | 1160 | | |
1154 | 1161 | | |
1155 | | - | |
| 1162 | + | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | | - | |
| 1165 | + | |
1159 | 1166 | | |
1160 | 1167 | | |
1161 | | - | |
| 1168 | + | |
1162 | 1169 | | |
1163 | 1170 | | |
1164 | 1171 | | |
| |||
0 commit comments