> On 04/02/2011, at 2:08 AM, Pavel Ivanov wrote:
> 
> What's wrong with the following suggestion to you?
> 
>>> Just start sqlite3 in such a way that the directory where your database 
>>> files reside is the current one.

Because I am not using "sqlite3", ie the command line utility.

> You can read it as: change your app so that before executing the script it 
> sets current directory to the one with the original database.

I am programming in Cocoa Touch and Objective C for my app, and using C for the 
standard SQLite calls.

I use the SQLite C function:

rc = sqlite3_prepare_v2(_db, cSQL, -1, &sqlStmt, &remainderCSQL);

where cSQL is the C string containing the SQL attach statement.

What SQLite or C library call could I put before that to set the current 
directory, that the sqlite3_prepare_v2 function would observe when processing 
the attach statement?

Thanks,
Tom
BareFeetWare

 --
Comparison of SQLite GUI tools:
http://www.barefeetware.com/sqlite/compare/?ml



_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to