Skip to content
  • Jean Boussier's avatar
    0016280f
    Don't require an active connection for table and column quoting · 0016280f
    Jean Boussier authored
    Extracted from: https://github.com/rails/rails/pull/50793
    
    Right now quoting table or column names requires a leased Adapter
    instance, even though none of the implementations actually requires
    an active connection.
    
    The idea here is to move these methods to the class so that the quoting
    can be done without leasing a connection or even needing the connection
    to ever have been established.
    
    I also checked `activerecord-sqlserver-adapter` and `oracle-enhanced`
    gems, and neither need an active connection.
    0016280f
    Don't require an active connection for table and column quoting
    Jean Boussier authored
    Extracted from: https://github.com/rails/rails/pull/50793
    
    Right now quoting table or column names requires a leased Adapter
    instance, even though none of the implementations actually requires
    an active connection.
    
    The idea here is to move these methods to the class so that the quoting
    can be done without leasing a connection or even needing the connection
    to ever have been established.
    
    I also checked `activerecord-sqlserver-adapter` and `oracle-enhanced`
    gems, and neither need an active connection.
Loading