[sqlite] Malformed database schema when using VACUUM

2019-04-30 Thread Manuel Rigger
Hi everyone, the following sequence of SQL statements results in "Error: malformed database schema (index_0) - non-deterministic functions prohibited in index expressions". CREATE TABLE test (c0); CREATE INDEX index_0 ON test(c0 LIKE ''); PRAGMA case_sensitive_like=false; VACUUM; SELECT * from

[sqlite] malformed database schema

2015-06-16 Thread Christian Nassau
Dear group, We encountered a somewhat obscure scenario that leaves an sqlite database in a corrupted state (tested with sqlite 3.8.8). Our case deals with - an in-memory database "db" with an attached file database "other.db". - "db" starts a transaction, - "db" tries to create a table

[sqlite] malformed database schema

2015-06-16 Thread Richard Hipp
On 6/16/15, Christian Nassau wrote: > Dear group, > > We encountered a somewhat obscure scenario that leaves an sqlite database in > a corrupted state (tested with sqlite 3.8.8). Thanks for the bug report and for the reproducible test case. This problem goes back to before version 3.5.1 (circa

Re: [sqlite] malformed database schema

2012-12-03 Thread sqdev sqdev
I had several cases of corrupted databases in the last few days which all look similar but not exactly the same: sqlite> pragma integrity_check; *** in database main *** On tree page 45127 cell 9: Rowid 3 out of order (previous was 76) Corruption detected in cell 9 on page 45127 Fragmentation of

Re: [sqlite] malformed database schema

2012-11-20 Thread Richard Hipp
On Tue, Nov 20, 2012 at 1:51 PM, sqdev123 wrote: > Current status: > I decrypted the malformed database by manipulating the > SQLiteConnection.Open > method in a way that it does not run any SQLiteCommands, as they call > Prepare which fails because of the corrupt schema. >

Re: [sqlite] malformed database schema

2012-11-20 Thread sqdev123
Current status: I decrypted the malformed database by manipulating the SQLiteConnection.Open method in a way that it does not run any SQLiteCommands, as they call Prepare which fails because of the corrupt schema. Then, I called SQLiteConnection.ChangePassword("") on the instance returned by

[sqlite] malformed database schema

2012-11-19 Thread sqdev sqdev
Hello, I'm using ADO.NET-Provider for SQLite (System.Data.SQLite, Version 1.0.80). My database is password-protected. The password is passed in the connection string. Sporadically, I get the following exception: Exception: The database disk image is malformed malformed database schema (VALUE1)

[sqlite] malformed database schema - no such table

2011-10-24 Thread aramati
Hello @all! I have a problem which I cannot solve: When trying to run a statement on my running db via JDBC I get the following error: java.sql.SQLException: malformed database schema (B_TEST_IDX) - no such table: main.BREATHS at org.sqlite.DB.throwex(DB.java:288) at

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-21 Thread Kees Nuyt
On Fri, 21 Mar 2008 08:54:22 +0100, you wrote: >I actually created all my views by means of "CREATE VIEW ... AS ...", and >(as Mr. Hipp said) these views was accepted from SQLite as "valid" SQL >statements. >The problem (was) that right now I couldn't open the DB anymore, due to the >malformed

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-21 Thread Stephen Oberholtzer
On Fri, Mar 21, 2008 at 10:12 AM, Noah Hart <[EMAIL PROTECTED]> wrote: > Suggestion to SQLite Developers ... Have PRAGMA integrity_check reparse > the SQL in sqlite_master, looking for errors. > > Regards, > > Noah I don't think that would actually help. It seems that this problem was caused

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-21 Thread Noah Hart
of SQLite Database Subject: Re: [sqlite] Malformed database schema with SQLite version > 3.5.x I actually created all my views by means of "CREATE VIEW ... AS ...", and (as Mr. Hipp said) these views was accepted from SQLite as "valid" SQL statements. The problem (was) that ri

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-21 Thread MarcoN
I actually created all my views by means of "CREATE VIEW ... AS ...", and (as Mr. Hipp said) these views was accepted from SQLite as "valid" SQL statements. The problem (was) that right now I couldn't open the DB anymore, due to the malformed schema error. Thanks again Marco

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-20 Thread drh
Kees Nuyt <[EMAIL PROTECTED]> wrote: > > >I know I can't create an invalid view, > >because SQLite refuses to create it, > >but this seems a problem to me... could SQLite just open the database, and > >complain only on the invalid views (i.e. for instance when I open the view > >to query the data

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-20 Thread Kees Nuyt
On Thu, 20 Mar 2008 10:23:23 +0100, you wrote: >...oopss.. I supposed it was a fault of mine. >Thanks for the support and the help. > >Just two points: > >1. the "PRAGMA writable_schema=ON" is not described in >the "official" documentation for the PRAGMA syntax It's not a supported PRAGMA. In

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-20 Thread MarcoN
...oopss.. I supposed it was a fault of mine. Thanks for the support and the help. Just two points: 1. the "PRAGMA writable_schema=ON" is not described in the "official" documentation for the PRAGMA syntax 2. does this mean that if I create an invalid view in the database, the entire database

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-19 Thread drh
MarcoN <[EMAIL PROTECTED]> wrote: > Hello, everybody. > > I have the following problem: I have an old project that uses a database > created with an older SQLite library version. > Now, since I updated SQLite to 3.5.5, I can't use the database anymore, > because any query on the database tables

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-18 Thread drh
MarcoN <[EMAIL PROTECTED]> wrote: > Yes, of course I can send you the DB: the file is under 1MB, about 100K if > compressed via .zip > Can I send it to you via e-mail? > Thanks very much for the support > Please send the database directly to my email address shown below. -- D. Richard Hipp

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-18 Thread MarcoN
Yes, of course I can send you the DB: the file is under 1MB, about 100K if compressed via .zip Can I send it to you via e-mail? Thanks very much for the support On Tue, Mar 18, 2008 at 1:10 PM, <[EMAIL PROTECTED]> wrote: > MarcoN <[EMAIL PROTECTED]> wrote: > > I actually don't know how to export

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-18 Thread Marco NOVARO
Yes, of course I can send you the DB: the file is under 1MB, about 100K if compressed via .zip Can I send it to you via e-mail? Thanks very much for the support ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-18 Thread drh
MarcoN <[EMAIL PROTECTED]> wrote: > I actually don't know how to export it, because "SQLite Database browser" > (that is able to open the database and execute the query) has no way to > export it; SQLiteSpy will not open the database because it is compiled with > a new SQLIte library version >

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-18 Thread MarcoN
I actually don't know how to export it, because "SQLite Database browser" (that is able to open the database and execute the query) has no way to export it; SQLiteSpy will not open the database because it is compiled with a new SQLIte library version Maybe I can try to find an older version of

Re: [sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-17 Thread drh
MarcoN <[EMAIL PROTECTED]> wrote: > Hello, everybody. > > I have the following problem: I have an old project that uses a database > created with an older SQLite library version. > Now, since I updated SQLite to 3.5.5, I can't use the database anymore, > because any query on the database tables

[sqlite] Malformed database schema with SQLite version > 3.5.x

2008-03-17 Thread MarcoN
Hello, everybody. I have the following problem: I have an old project that uses a database created with an older SQLite library version. Now, since I updated SQLite to 3.5.5, I can't use the database anymore, because any query on the database tables returns: SQLite error 11 - Malformed database

Re: [sqlite] Malformed database schema

2008-02-15 Thread Rich Shepard
On Fri, 15 Feb 2008, Wojciech Kocjan wrote: > Do I have to make anything like that again? I mean: migration from 3.2 to > 3.4? I suggest that you upgrade both to 3.5.5. Then see if you have any problems. The versions you have installed are both quite old. Rich -- Richard B. Shepard, Ph.D.

[sqlite] Malformed database schema

2008-02-15 Thread Wojciech Kocjan
Hello, I'm not experienced user of SQLite and i have small problem with my database. I'm using SQLite database for my website (through PHP PDO). On remote Server everything is OK. I'm using: sqlite3 database.db and after '.tables' command I see all tables. Problems are on localhost: sqlite3

[sqlite] malformed database schema

2007-02-05 Thread Paolo Vernazza
A client of mine reported a problem with a malformed DB. I tried to recovery the DB but without success. If I edit the file with an hex editor I see any data, but using sqlite I can't access it. >sqlite3 data.sqlite SQLite version 3.3.12 Enter ".help" for instructions sqlite> PRAGMA

Re: [sqlite] malformed database schema - near "AUTOINCREMENT": syntax error

2005-08-23 Thread Kurt Welgehausen
> "malformed database schema - near "AUTOINCREMENT": syntax error" It might help if you published your schema. Also, it would be interesting to know whether your v3.2.3 passed all the tests in the test suite. Regards

Re: [sqlite] malformed database schema - near "AUTOINCREMENT": syntax error

2005-08-23 Thread Puneet Kishor
On Aug 23, 2005, at 5:10 AM, Christiane Lemke wrote: Dear Mailing List users, I am new to SQLite and didn't find help on the mailing list archives or google for my problem. I am using SQLite in my CGI/C program. I got it running perfectly under three Linux systems (one ubuntu, two gentoos),

[sqlite] "Malformed database schema"

2004-08-24 Thread jean . bort
hi, I work on Sqlite for Symbian OS, and I have a problem on device. When I open a new database, I have this message : "malformed database schema - library routine called out of sequence". myDB = sqlite_open("//system//programs//demo.sql", 0, ); Who can explain this error ? the same code work