File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ nbproject
19
19
.project
20
20
* .sqlite
21
21
* .sqlite3
22
+ * .sqlite3-shm
23
+ * .sqlite3-wal
22
24
* .derby
23
25
derby.log
24
26
test.hsqldb *
Original file line number Diff line number Diff line change @@ -774,6 +774,14 @@ class SQLite3Adapter < AbstractAdapter
774
774
# config.active_record.sqlite3_adapter_strict_strings_by_default = true
775
775
class_attribute :strict_strings_by_default , default : false # Does not actually do anything right now
776
776
777
+ def initialize ( ...)
778
+ super
779
+
780
+ conn_params = @config . compact
781
+
782
+ @connection_parameters = conn_params
783
+ end
784
+
777
785
def self . represent_boolean_as_integer = ( value ) # :nodoc:
778
786
if value == false
779
787
raise "`.represent_boolean_as_integer=` is now always true, so make sure your application can work with it and remove this settings."
@@ -817,7 +825,7 @@ def jdbc_column_class
817
825
::ActiveRecord ::ConnectionAdapters ::SQLite3Column
818
826
end
819
827
820
- def jdbc_connection_class ( spec )
828
+ def jdbc_connection_class
821
829
self . class . jdbc_connection_class
822
830
end
823
831
Original file line number Diff line number Diff line change 1
1
require 'test_helper'
2
2
3
- SQLITE3_CONFIG = { :adapter => 'sqlite3' , :database => 'test.sqlite3' }
3
+ SQLITE3_CONFIG = {
4
+ adapter : 'sqlite3' ,
5
+ database : 'test.sqlite3'
6
+ }
7
+
4
8
unless ( ps = ENV [ 'PREPARED_STATEMENTS' ] || ENV [ 'PS' ] ) . nil?
5
9
SQLITE3_CONFIG [ :prepared_statements ] = ps
6
10
end
7
11
ActiveRecord ::Base . establish_connection ( SQLITE3_CONFIG )
8
12
9
- at_exit { Dir [ '*test.sqlite3' ] . each { |f | File . delete ( f ) } }
13
+ at_exit { Dir [ '*test.sqlite3-* ' ] . each { |f | File . delete ( f ) } }
You can’t perform that action at this time.
0 commit comments