* Print the representation of a parameter to be sent to the remote side. * * Note: we always label the Param's type explicitly rather than relying on * transmitting a numeric type OID in PQexecParams(). This allows us to * avoid assuming that types have the same OIDs on the remote side as they * do locally --- they need only have the same names. */
| 3261 | * do locally --- they need only have the same names. |
| 3262 | */ |
| 3263 | static void |
| 3264 | printRemoteParam(int paramindex, Oid paramtype, int32 paramtypmod, |
| 3265 | deparse_expr_cxt *context) |
| 3266 | { |
| 3267 | StringInfo buf = context->buf; |
| 3268 | char *ptypename = deparse_type_name(paramtype, paramtypmod); |
| 3269 | |
| 3270 | appendStringInfo(buf, "$%d::%s", paramindex, ptypename); |
| 3271 | } |
| 3272 | |
| 3273 | /* |
| 3274 | * Print the representation of a placeholder for a parameter that will be |
no test coverage detected