lib/sequel/adapters/shared/mysql.rb in sequel-5.79.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-5.80.0
- old
+ new
@@ -924,12 +924,12 @@
# MariaDB 10.5.0 supports INSERT RETURNING.
def supports_returning?(type)
(type == :insert && db.mariadb? && db.adapter_scheme != :jdbc) ? (db.server_version >= 100500) : false
end
- # MySQL 8+ supports SKIP LOCKED.
+ # MySQL 8+ and MariaDB 10.6+ support SKIP LOCKED.
def supports_skip_locked?
- !db.mariadb? && db.server_version >= 80000
+ db.server_version >= (db.mariadb? ? 100600 : 80000)
end
# Check the database setting for whether fractional timestamps
# are suppported.
def supports_timestamp_usecs?