Fix the parse.sql output file so that it is readable into a database where
foreign keys are enforced. FossilOrigin-Name: 3a82c554c3bde4640df6865686f8f70e2c1e07c581fed4772b6b0a8ec1b10bb6
This commit is contained in:
parent
2ecf928ea9
commit
1417c2f77f
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C More\sdetails\son\sthe\scomment\sjustifying\sthe\saleged\sdata\srace\sin\sthe\sWAL-mode\ncheckpoint\slogic.
|
||||
D 2019-11-27T20:40:44.618
|
||||
C Fix\sthe\sparse.sql\soutput\sfile\sso\sthat\sit\sis\sreadable\sinto\sa\sdatabase\swhere\nforeign\skeys\sare\senforced.
|
||||
D 2019-11-29T12:51:00.835
|
||||
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
||||
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
||||
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
|
||||
@ -1770,7 +1770,7 @@ F tool/genfkey.test b6afd7b825d797a1e1274f519ab5695373552ecad5cd373530c63533638a
|
||||
F tool/getlock.c f4c39b651370156cae979501a7b156bdba50e7ce
|
||||
F tool/index_usage.c 9ec344d29cbeb03fdc0fce668eedfb7495792170de933adf95cf8d6904a166ad
|
||||
F tool/kvtest-speed.sh 4761a9c4b3530907562314d7757995787f7aef8f
|
||||
F tool/lemon.c aff705f55b49fa539b84f6d0268b187fd13073fdea8974eb1e48f46f65ecd711
|
||||
F tool/lemon.c 11dd73b0a6f36a77e5683f1e7493313bd6e21f948086c985fee4a66030d5417c
|
||||
F tool/lempar.c 34b136b281ae022277738d8b51061237fb330deaa317010d89375117e3a028aa
|
||||
F tool/libvers.c caafc3b689638a1d88d44bc5f526c2278760d9b9
|
||||
F tool/loadfts.c c3c64e4d5e90e8ba41159232c2189dba4be7b862
|
||||
@ -1851,7 +1851,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||
P 08f09dc4f986a27f4e4e69f8226dbfaf0cfe1269cefc2830bf0fbef7b9bbda48
|
||||
R b207e459d1be3160926607ccb6908528
|
||||
P 0fab65c79f675c825ed7e85c82b65ce6f990c9d0796ebb3886942d241df7b268
|
||||
R 8e1116b0ef727587982c19bb9d5f4bf0
|
||||
U drh
|
||||
Z 775e94978b5046eb8d005a7d1a58936a
|
||||
Z ff67aba8c597b399feb6ff687387ec85
|
||||
|
@ -1 +1 @@
|
||||
0fab65c79f675c825ed7e85c82b65ce6f990c9d0796ebb3886942d241df7b268
|
||||
3a82c554c3bde4640df6865686f8f70e2c1e07c581fed4772b6b0a8ec1b10bb6
|
@ -4189,11 +4189,13 @@ void ReportTable(
|
||||
return;
|
||||
}
|
||||
fprintf(sql,
|
||||
"BEGIN;\n"
|
||||
"CREATE TABLE symbol(\n"
|
||||
" id INTEGER PRIMARY KEY,\n"
|
||||
" name TEXT NOT NULL,\n"
|
||||
" isTerminal BOOLEAN NOT NULL,\n"
|
||||
" fallback INTEGER REFERENCES symbol\n"
|
||||
" fallback INTEGER REFERENCES symbol"
|
||||
" DEFERRABLE INITIALLY DEFERRED\n"
|
||||
");\n"
|
||||
);
|
||||
for(i=0; i<lemp->nsymbol; i++){
|
||||
@ -4244,6 +4246,7 @@ void ReportTable(
|
||||
}
|
||||
}
|
||||
}
|
||||
fprintf(sql, "COMMIT;\n");
|
||||
}
|
||||
lineno = 1;
|
||||
tplt_xfer(lemp->name,in,out,&lineno);
|
||||
|
Loading…
Reference in New Issue
Block a user