File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ def configure_packaged_libraries
62
62
"-O2" , # see https://github.com/sparklemotion/sqlite3-ruby/issues/335 for some benchmarks
63
63
"-fvisibility=hidden" , # see https://github.com/rake-compiler/rake-compiler-dock/issues/87
64
64
"-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1" ,
65
- "-DSQLITE_USE_URI=1"
65
+ "-DSQLITE_USE_URI=1" ,
66
+ "-DSQLITE_ENABLE_DBPAGE_VTAB=1"
66
67
]
67
68
env [ "CFLAGS" ] = [ user_cflags , env [ "CFLAGS" ] , more_cflags ] . flatten . join ( " " )
68
69
recipe . configure_options += env . select { |k , v | ENV_ALLOWLIST . include? ( k ) }
Original file line number Diff line number Diff line change @@ -721,5 +721,10 @@ def test_transaction_returns_block_result
721
721
result = @db . transaction { :foo }
722
722
assert_equal :foo , result
723
723
end
724
+
725
+ def test_sqlite_dbpage_vtab
726
+ skip ( "sqlite_dbpage not supported" ) unless SQLite3 ::SQLITE_LOADED_VERSION >= "3.47.0"
727
+ assert_nothing_raised { @db . execute ( "select count(*) from sqlite_dbpage" ) }
728
+ end
724
729
end
725
730
end
You can’t perform that action at this time.
0 commit comments