@@ -138,6 +138,10 @@ def test_roundtrip_zstd(tmpdir, chinook_file):
138138 linkcon = sqlite3 .connect (f"file:{ linkpath } ?vfs=zstd" , uri = True )
139139 linkcon .execute ("select 1" )
140140
141+ # verify application_id
142+ outer = sqlite3 .connect (dbfn )
143+ assert next (outer .execute ("PRAGMA application_id" ))[0 ] == 0x7A737464
144+
141145
142146@pytest .mark .skipif (os .geteuid () != 0 , reason = "must run in docker" )
143147def test_db_in_root ():
@@ -160,6 +164,10 @@ def test_vacuum(tmpdir, chinook_file):
160164 dbfn = os .path .join (tmpdir , "chinook_zstd_vacuum.sqlite" )
161165 con .execute (f"VACUUM INTO 'file:{ dbfn } ?vfs=zstd'" )
162166
167+ # verify application_id
168+ outer = sqlite3 .connect (dbfn )
169+ assert next (outer .execute ("PRAGMA application_id" ))[0 ] == 0x7A737464
170+
163171 # dump from the zstd version
164172 rslt = subprocess .run (
165173 f"sqlite3 :memory: -bail -cmd '.load { os .path .join (BUILD ,'zstd_vfs' )} ' -cmd '.open file:{ dbfn } ?mode=ro&vfs=zstd' -cmd .dump -cmd .exit" ,
@@ -252,9 +260,10 @@ def test_sam(tmpdir):
252260 ratio = float (zstd_sqlite_size ) / sam_zst_size
253261 assert ratio <= 1.6
254262
255- # verify outer page size
263+ # verify outer page size and application_id
256264 con = sqlite3 .connect (f"file:{ zstd_sqlite } ?mode=ro" , uri = True )
257265 assert next (con .execute ("PRAGMA page_size" ))[0 ] == outer_page_size
266+ assert next (con .execute ("PRAGMA application_id" ))[0 ] == 0x7A737464
258267
259268 # verify inner page size
260269 con .enable_load_extension (True )
0 commit comments