@@ -2262,7 +2262,7 @@ pqFunctionCall3(PGconn *conn, Oid fnid,
2262
2262
*/
2263
2263
switch (id )
2264
2264
{
2265
- case 'V' : /* function result */
2265
+ case PqMsg_FunctionCallResponse :
2266
2266
if (pqGetInt (actual_result_len , 4 , conn ))
2267
2267
continue ;
2268
2268
if (* actual_result_len != -1 )
@@ -2283,22 +2283,22 @@ pqFunctionCall3(PGconn *conn, Oid fnid,
2283
2283
/* correctly finished function result message */
2284
2284
status = PGRES_COMMAND_OK ;
2285
2285
break ;
2286
- case 'E' : /* error return */
2286
+ case PqMsg_ErrorResponse :
2287
2287
if (pqGetErrorNotice3 (conn , true))
2288
2288
continue ;
2289
2289
status = PGRES_FATAL_ERROR ;
2290
2290
break ;
2291
- case 'A' : /* notify message */
2291
+ case PqMsg_NotificationResponse :
2292
2292
/* handle notify and go back to processing return values */
2293
2293
if (getNotify (conn ))
2294
2294
continue ;
2295
2295
break ;
2296
- case 'N' : /* notice */
2296
+ case PqMsg_NoticeResponse :
2297
2297
/* handle notice and go back to processing return values */
2298
2298
if (pqGetErrorNotice3 (conn , false))
2299
2299
continue ;
2300
2300
break ;
2301
- case 'Z' : /* backend is ready for new query */
2301
+ case PqMsg_ReadyForQuery :
2302
2302
if (getReadyForQuery (conn ))
2303
2303
continue ;
2304
2304
@@ -2330,7 +2330,7 @@ pqFunctionCall3(PGconn *conn, Oid fnid,
2330
2330
}
2331
2331
/* and we're out */
2332
2332
return pqPrepareAsyncResult (conn );
2333
- case 'S' : /* parameter status */
2333
+ case PqMsg_ParameterStatus :
2334
2334
if (getParameterStatus (conn ))
2335
2335
continue ;
2336
2336
break ;
0 commit comments