Commit 79d7c92
authored
teach
CAST functions can have 1 argument or 3 arguments where the latter is
the source type plus the type modifier ("typmod") and explicit context
for the destination type.
This changes `#[pg_cast]` to blindly support any number of arguments on
the function to which it's attached and then Postgres will sort it out
during DDL playback.#[pg_cast] to support 3-argument CAST functions (pgcentralfoundation#2119)1 parent 129f09f commit 79d7c92
File tree
2 files changed
+12
-14
lines changed- pgrx-sql-entity-graph/src/pg_extern/entity
- pgrx-tests/src/tests
2 files changed
+12
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 485 | | |
500 | 486 | | |
501 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| |||
0 commit comments