Commit 5ed4178
Fix Postgres default parsing for
This fixes a small parsing gap in Postgres introspection.
The parser already handled `nextval()`, but not schema-qualified calls
like `pg_catalog.nextval()`. In some setups, the database can return the
qualified form (not specified), so sequence defaults could be missed.
This PR updates the parser to recognize both forms and adds a test.
---------
Co-authored-by: jacek-prisma <malec@prisma.io>pg_catalog.nextval(...) (#5802)1 parent 3187e39 commit 5ed4178
1 file changed
Lines changed: 26 additions & 3 deletions
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
313 | 329 | | |
314 | 330 | | |
315 | 331 | | |
| |||
351 | 367 | | |
352 | 368 | | |
353 | 369 | | |
354 | | - | |
355 | | - | |
356 | 370 | | |
357 | 371 | | |
358 | 372 | | |
| |||
727 | 741 | | |
728 | 742 | | |
729 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
730 | 753 | | |
731 | 754 | | |
732 | 755 | | |
| |||
0 commit comments