ankane / blazer

Business intelligence made simple
MIT License
4.5k stars 471 forks source link

Dup frozen columns array to force encoding in Trilogy #482

Closed jenshenny closed 1 week ago

jenshenny commented 1 week ago

Closes: https://github.com/ankane/blazer/issues/481

When using the Trilogy adapter and Rails 7.2, I'm getting a frozen array error when running a query. Columns is frozen in Rails 7.2 https://github.com/rails/rails/commit/9652207c6b12ccdfd7067b874f8ceff10c54d2b4.

Instead of attempting to modify the array, changing to allocate a new one.

ankane commented 1 week ago

Thanks @jenshenny!