If I save an intermediate result from the fluent API query builder, will later calls modify it? (In other words, are the intermediate results immutable?) For example,
final var a = create.select().from(AUTHOR);
final var before1920 = a.where(AUTHOR.YEAR_OF_BIRTH.gt(1920).fetch();
final var authorSql = a.where(AUTHOR.FIRST_NAME.eq("Paulo")).getSql();
Can I be confident that a was not modified by the later statements?
If this is not the case, my main desire is to sometimes log the SQL from queries either to audit logs or debugging logs. Can I safely call getSQL() before or after calling fetch*() methods?