mirror of
https://github.com/postgres/postgres.git
synced 2025-12-13 14:22:43 +03:00
Add new to_reg* functions for error-free OID lookups.
These functions won't throw an error if the object doesn't exist, or if (for functions and operators) there's more than one matching object. Yugo Nagata and Nozomi Anzai, reviewed by Amit Khandekar, Marti Raudsepp, Amit Kapila, and me.
This commit is contained in:
@@ -3420,7 +3420,7 @@ plperl_spi_prepare(char *query, int argc, SV **argv)
|
||||
char *typstr;
|
||||
|
||||
typstr = sv2cstr(argv[i]);
|
||||
parseTypeString(typstr, &typId, &typmod);
|
||||
parseTypeString(typstr, &typId, &typmod, false);
|
||||
pfree(typstr);
|
||||
|
||||
getTypeInputInfo(typId, &typInput, &typIOParam);
|
||||
|
||||
Reference in New Issue
Block a user