Skip to content

Commit a4c9538

Browse files
Merge pull request rails#9605 from neerajdotname/sqlite-support-savepoint
SQLite3 3.6.8+ supports savepoints
2 parents 087ce9d + c132841 commit a4c9538

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def supports_statement_cache?
125125
# In order to get around this problem, #transaction will emulate the effect
126126
# of nested transactions, by using savepoints:
127127
# http://dev.mysql.com/doc/refman/5.0/en/savepoint.html
128-
# Savepoints are supported by MySQL and PostgreSQL, but not SQLite3.
128+
# Savepoints are supported by MySQL and PostgreSQL. SQLite3 version >= '3.6.8'
129+
# supports savepoints.
129130
#
130131
# It is safe to call this method if a database transaction is already open,
131132
# i.e. if #transaction is called within another #transaction block. In case

0 commit comments

Comments
 (0)