mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Replace appendPQExpBuffer(..., <constant>) with appendPQExpBufferStr
Arguably makes the code a bit more readable, and might give a small performance gain. David Rowley
This commit is contained in:
@ -2786,7 +2786,7 @@ lookup_function_oid(PGconn *conn, const char *desc, Oid *foid)
|
||||
PGresult *res;
|
||||
|
||||
query = createPQExpBuffer();
|
||||
printfPQExpBuffer(query, "SELECT ");
|
||||
appendPQExpBufferStr(query, "SELECT ");
|
||||
appendStringLiteralConn(query, desc, conn);
|
||||
appendPQExpBuffer(query, "::pg_catalog.%s::pg_catalog.oid",
|
||||
strchr(desc, '(') ? "regprocedure" : "regproc");
|
||||
|
Reference in New Issue
Block a user