End-User Documentation

Runtime Is Frozen

Runtime Is Frozen

A frozen runtime means QueryLens has already started validating and will no longer accept configuration changes until you reset it.

Why It Happens

Freeze is expected behavior. It keeps cached parsing and validation deterministic across a test run.

How To Recover

  • Reorganize test setup so Dialect and schema-loading calls happen before any validation
  • Use QueryLens.Reset() only when you intentionally need a fresh global configuration

Example

var query = new SqlQuery("SELECT * FROM dbo.orders");
_ = query.IsValid;

Assert.True(QueryLens.IsFrozen);
QueryLens.Reset();

Related