Commit bcc27a6
committed
fix(pgsql/test): fix HAVING alias, Issue1412 With() bug, Issue3204 CatchSQL
- Lock_ChainedMethods: PgSQL HAVING cannot reference SELECT aliases,
use COUNT(*)>? instead of cnt>?
- Issue1412: skip test — framework With() uses Go field name "Id" as
column name, fails on case-sensitive PgSQL identifiers
- Issue3204: protect sqlArray access — CatchSQL may return empty when
PgSQL InsertAndGetId uses RETURNING clause1 parent c122372 commit bcc27a6
2 files changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
773 | 778 | | |
774 | 779 | | |
775 | 780 | | |
| |||
1312 | 1317 | | |
1313 | 1318 | | |
1314 | 1319 | | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1319 | 1328 | | |
1320 | 1329 | | |
1321 | 1330 | | |
| |||
0 commit comments