Re: [sqlite] sqlite3 on MacOSX

2006-07-09 Thread Hartwig Wiesmann

Thanks!

Using the latest sqlite3 command tool helped!

Hartwig



RE: [sqlite] sqlite3 on MacOSX

2006-07-09 Thread Pat Wibbeler
On my mac, sqlite3 -version shows 3.1.3 which is not forward compatible
with the default format for 3.3.6 unless you use the PRAGMA:

PRAGMA legacy_file_format=TRUE;

Before you create the database.

To use the old version as the default, you can compile the lib yourself
with:
 -DSQLITE_DEFAULT_FILE_FORMAT=1

Alternatively, you could get the source and build a compatible sqlite
client.

Pat

-Original Message-
From: Hartwig Wiesmann [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 09, 2006 3:25 PM
To: sqlite-users@sqlite.org
Subject: [sqlite] sqlite3 on MacOSX

Hello!

I have created a database (let's name it "Test.db") on the Mac by  
using the sqlite lib (sqlite version 3.3.6) in my program. Everything  
works fine.
I also wanted to check the database contents using the sqlite command  
line program. Calling "sqlite3 Test.db" from the terminal and  
afterwards sending the command ".databases" leads to an error message  
"unsupported file format".

What am I doing wrong?

Hartwig



Re: [sqlite] sqlite3 on MacOSX

2006-07-09 Thread Will Leshner

On 7/9/06, Hartwig Wiesmann <[EMAIL PROTECTED]> wrote:


What am I doing wrong?


Are you using the version of the sqlite command-line utility that
comes with Tiger? If so, it isn't going to be compatible with the
database you created, unless you are careful to create an old-legacy
database. Try the sqlite that you get when you build package and I bet
you'll have better luck.