设置 DBD::SQLite 以支持自定义版本的 sqlite3

Setting up DBD::SQLite to support a custom version of sqlite3

当我将超过 998 个变量传递到 SQL 查询时,使用 sqlite3 的 package-default 版本出现 too many SQL variables 错误。

sqlite3 二进制文件与 yum 一起打包用于我的 OS 和版本编译时支持默认变量名(实际上有 999 个)。

我从源代码编译了一个 sqlite3 版本,使用修改后的 header 将此默认值提高到更实际的值(例如,99999)。

为了将这个自定义版本的 sqlite3 与 Perl 及其 DBI 接口集成到 DBD::SQLite 插件——为了能够使用这个新的限制——我对 Perl 做了哪些修改DBD::SQLite 插件,这样它将使用 sqlite3 的这个修改版本,而不是它当前似乎使用的打包二进制文件(或其库)?

请检查文档 DBD::SQLite 在标题下 SQLITE VERSION

它有关于它使用的 SQLite 库的信息

DBD::SQLite is usually compiled with a bundled SQLite library (SQLite version 3.22.0 as of this release) for consistency. However, a different version of SQLite may sometimes be used for some reasons like security, or some new experimental features.

另请参阅同一文档中的 DBD::SQLite::compile_options()