[sqlite] SQLITE_NULL values on column of migrated DB

2015-11-01 Thread Andi Palo
No the bug was mine I think! I used the tool found at http://mdb2sq3.codeplex.com/. (wrote it in the first mail of thread) If you see the escape char was single quote (method EscapeIdentifier in TableMetaData.cs line 55), which was used for example in CreateTableDML (SsLiteBackend.cs line 169)

[sqlite] SQLITE_NULL values on column of migrated DB

2015-11-01 Thread Andi Palo
Thank you Richard!!! First of all thank you for sqlite, and then for the response on this bug. @Donald Griggs: I had to substitute only one line in the tool kindly provided by MfHernandez: public static String EscapeIdentifier(String identifier) { return "'" +

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-31 Thread Andi Palo
Hi Donald, many thanks for your response. I used the command: "pragma integrity_check" with db opened with version 3.9.1. The result is: Error: database disk image is malformed Am I missing something or this error is more silent that the original fault? I am planning to make a patch of the

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-31 Thread Simon Slavin
On 31 Oct 2015, at 7:42pm, Andi Palo wrote: > I used the command: > "pragma integrity_check" with db opened with version 3.9.1. > > The result is: > > Error: database disk image is malformed > > Am I missing something or this error is more silent that the original fault? As later and later

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-31 Thread Richard Hipp
On 10/31/15, Andi Palo wrote: > thank you ... for the response on this bug. > I've been working on this. Now I'm not so sure it is a bug in SQLite at all as I'm unable to reproduce the problem (so far). Can you explain to me more about how the khirapumpsshaft.db database was generated? Maybe

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-31 Thread Richard Hipp
On 10/31/15, Donald Griggs wrote: > > I imagine this doesn't fully solve your problem, but I noted that: > > 1. Your example database does NOTt pass >PRAGMA INTEGRITY_CHECK; > When using 3.9.1 command line utility. > > 2. Using 3.8.10.2, it DOES pass. > Very interesting. The schema

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-31 Thread Donald Griggs
Hi, Andi, I imagine this doesn't fully solve your problem, but I noted that: 1. Your example database does NOTt pass PRAGMA INTEGRITY_CHECK; When using 3.9.1 command line utility. 2. Using 3.8.10.2, it DOES pass. 3. I can use ".dump" under 3.8.10.2, to produce a text sql file, then,

[sqlite] SQLITE_NULL values on column of migrated DB

2015-10-30 Thread Andi Palo
Hi folks, I have a problem with version 3.9.1 of sqlite. I have migrated a DB from ms access to sqlite using the tool at http://mdb2sq3.codeplex.com. Some columns are empty either using sqlite3.exe or sqlite3.dll at the current version. Using version 3.8.10.2 (I compiled it by myself), the column