Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Clemens Ladisch
Karl Forner wrote: > On Tue, Dec 19, 2017 at 3:12 PM, Clemens Ladisch wrote: >> Where does the hex number in "excluded_mice_temp2b5036f270" come from? >> Is it random? > > Yes, thanks, I think I got it. In order to alter tables, we first move them > to a new table with a temp

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
On Tue, Dec 19, 2017 at 3:12 PM, Clemens Ladisch wrote: > Karl Forner wrote: > > Here's a screenshot of some of the diffs using vbindiff > > > > https://ibb.co/kNm0X6 > > SQLite uses hash tables for schema objects, so different names might > result in such differences. > >

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
> > PRAGMA integrity_check; > all ok > > > > Simon. > ___ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > ___

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Clemens Ladisch
Karl Forner wrote: > Here's a screenshot of some of the diffs using vbindiff > > https://ibb.co/kNm0X6 SQLite uses hash tables for schema objects, so different names might result in such differences. Where does the hex number in "excluded_mice_temp2b5036f270" come from? Is it random? Regards,

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Simon Slavin
On 19 Dec 2017, at 1:30pm, Karl Forner wrote: > and the dumps usign the .dump sqlite3.exe command are also identical. Paul has a better chance of understanding the hex dump than I do, but what I think I’m seeing is trivial differences in file organisation. In other

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Keith Medcalf
irway to Heaven says a lot about anticipated traffic volume. >-Original Message- >From: sqlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of Karl Forner >Sent: Tuesday, 19 December, 2017 06:30 >To: SQLite mailing list >Subject: Re: [sqlite] same co

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
and the dumps usign the .dump sqlite3.exe command are also identical. On Tue, Dec 19, 2017 at 2:19 PM, Karl Forner wrote: > > Using the sqlite3 shell tool please give the command > > SELECT * FROM sqlite_master; > > the results are identical > > table|_meta|_meta|2|CREATE

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
> Using the sqlite3 shell tool please give the command > SELECT * FROM sqlite_master; the results are identical table|_meta|_meta|2|CREATE TABLE "_meta"("TABLENAME" TEXT NOT NULL , "COLNAME" TEXT NOT NULL , "VARNAMES" TEXT , "LABELS" TEXT , "PREFS" TEXT , PRIMARY

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Simon Slavin
On 19 Dec 2017, at 12:43pm, Karl Forner wrote: > All the software in the docker container. so it is exactly the same version > of all software and libraries, except the linux kernel. Moreover the > differences are not in the header, rather interspersed with what looks

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
Thanks for your reply. All the software in the docker container. so it is exactly the same version of all software and libraries, except the linux kernel. Moreover the differences are not in the header, rather interspersed with what looks like CREATE statements. On Tue, Dec 19, 2017 at 1:40 PM,

Re: [sqlite] same code produces a different database file on different computers

2017-12-19 Thread Paul Sanderson
SQLite stores the verison number of the librrary in the database header. Different SQlite libraries on different computers would cause this error. Paul www.sandersonforensics.com skype: r3scue193 twitter: @sandersonforens Tel +44 (0)1326 572786

[sqlite] same code produces a different database file on different computers

2017-12-19 Thread Karl Forner
Hello, I encountered a weird behavior recently. The exact same code (executed from a docker container using the same image) produced a different database file on two computers, as verified by a MD5 or sha256 hash of the two files. But using the* .sha3sum* of sqlite3.exe I could check that the