Allow the types of parameters to PREPARE to be inferred. If a parameter's
Neil Conway <neilc@samurai.com>
Allow the types of parameters to PREPARE to be inferred. If a parameter's data type is unspecified or is declared to be "unknown", the type will be inferred from the context in which the parameter is used. This was already possible for protocol-level prepared statements.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/deallocate.sgml | modified | +3 −3 |
| doc/src/sgml/ref/execute.sgml | modified | +6 −7 |
| doc/src/sgml/ref/prepare.sgml | modified | +25 −17 |
| src/backend/parser/analyze.c | modified | +29 −10 |
| src/test/regress/expected/prepare.out | modified | +23 −19 |
| src/test/regress/sql/prepare.sql | modified | +9 −4 |