docs: public void initDelegateDialect(MappedStatement ms) {
          if (delegate == null) {
              if (autoDialect) {
                  this.delegate = getDialect(ms);
              } else {
                  dialectThreadLocal.set(getDialect(ms));
              }
          }
      }