lib/arel_extensions/visitors/mysql.rb
# JSON if implemented only after 10.2.3 in MariaDb and 5.7 in MySql
JSON if implemented only after 10.2.3 in MariaDb and 5.7 in MySql
JSON if implemented only after 10 . 2 . 3 in MariaDb and 5 . 7 in MySql
def json_supported?
        Arel::Table.engine.connection.send(:mariadb?) &&
        Arel::Table.engine.connection.send(:version) >= '10.2.3' ||
        !Arel::Table.engine.connection.send(:mariadb?) &&
        Arel::Table.engine.connection.send(:version) >= '5.7.0'
      end
def json_supported? Arel :: Table . engine . connection . send ( :mariadb? ) && Arel :: Table . engine . connection . send ( :version ) >= '10.2.3' || ! Arel :: Table . engine . connection . send ( :mariadb? ) && Arel :: Table . engine . connection . send ( :version ) >= '5.7.0' end
JSON if implemented only after 10.2.3 in MariaDb and 5.7 in MySql
JSON if implemented only after 10 . 2 . 3 in MariaDb and 5 . 7 in MySql