Skip to content

Commit 628e41c

Browse files
committed
Build Doltlite with SQLITE_ENABLE_COLUMN_METADATA and friends
pdo_sqlite references sqlite3_column_table_name, which is gated behind SQLITE_ENABLE_COLUMN_METADATA. Match the CFLAGS used by the stock-SQLite phpunit workflow so pdo_sqlite can bind against the Doltlite build.
1 parent f7dbdb9 commit 628e41c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/phpunit-tests-doltlite.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ jobs:
3535
run: |
3636
mkdir -p build
3737
cd build
38-
../configure
38+
# Same feature set we enable for stock-SQLite runs. PHP's pdo_sqlite
39+
# pulls in sqlite3_column_table_name, which needs COLUMN_METADATA.
40+
CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_USE_URI -DSQLITE_ENABLE_JSON1" \
41+
../configure
3942
make -j"$(nproc)" doltlite-lib
4043
ls -la libdoltlite* sqlite3.h
4144
working-directory: doltlite-src

0 commit comments

Comments
 (0)