endMessage(msg);
}
public void writeParse(ByteBuf msg, String stmtName, String query, List<Type> paramTypes) throws IOException {
Context context = getContext();
if (logger.isLoggable(FINEST))
logger.finest("PARSE (" + stmtName + "): " + query);
beginMessage(msg, PARSE_MSG_ID);
writeCString(msg, stmtName != null ? stmtName : "", context.getCharset());
writeCString(msg, query, context.getCharset());
msg.writeShort(paramTypes.size());
for (Type paramType : paramTypes) {
int paramTypeOid = paramType != null ? paramType.getId() : 0;
msg.writeInt(paramTypeOid);