lib/sequel/extensions/columns_introspection.rb in sequel-4.41.0 vs lib/sequel/extensions/columns_introspection.rb in sequel-4.42.0

- old
+ new

@@ -26,10 +26,12 @@ # if there are columns selected, in order to skip a database # query to retrieve the columns. This should work with # Symbols, SQL::Identifiers, SQL::QualifiedIdentifiers, and # SQL::AliasedExpressions. def columns - return @columns if @columns + if cols = _columns + return cols + end if (pcs = probable_columns) && pcs.all? self.columns = pcs else super end