-
sommerfeldah, the field that is causing trouble is declared as VARCHAR. sqlite2 dumps some rows as integers, others as strings
-
sommerfeldsqlite3 dumps them all as strings, but turned the large unsigned into a double on read
-
sommerfeld(and dumped it as '1.84467440737096e+19'
-
sommerfeld)
-
alancwe had a python script dump the sqlite2 db, process the output, then import to sqlite3
-
alancI am thankfully ignorant of the details of getting that working
-
sommerfeldyeah, I can now see why that was needed.
-
gitomat[illumos-gate] 15167 Panic when halting a zone with self-created links -- Andy Fiddaman <illumos⊙fn>
-
jclulowAssuming both the 2 and 3 shlib can be linked at once, I think we would probably aim for a C program that does the conversion and any checks, etc.
-
jclulowSQLite3 is pretty great, it would be good to ditch the old stuff.
-
sommerfeldJust to make it trickier, there are two other consumers of SQLite 2 in illumos-gate: idmapd and smbsrv's libsmb
-
sommerfeldand the version of sqlite 2 in the gate has been extended with UTF8 case conversion functions (used by idmap in sql constraints)
-
jbkit'd be nice.. i'm pretty sure there's a lurking consistency bug in the current version that leads to corrupt repository.db files during unclean shutdowns
-
richloweI have done a million unclean shutdowns of late without corruption
-
richlowebut that doesn't mean much, except it's hard to trigger
-
jclulowsommerfeld: We may be able to assemble a framework to do all three of those conversions in at least a broadly similar fashion