On Thu, Jan 19, 2012 at 11:24 AM, Hauptmann Peter <hauptma...@yahoo.com>wrote:

> Hi,
>
> I am trying to create an in-memory database and then attach an "real"
> database to it:
>
> sqlite3_open_v2(":memory:", ...);
> sqlite3_exec(db, "ATTACH c:\\temp\\sqlite\\small.sdb AS disk", ...);
>

Did you quote the filename?

   sqlite3_exec(db, "ATTACH 'c:\\...\\small.sdb' AS disk", ...);


>
> Attach fails with  Error 1: SQL logic error or missing database.
>
> All other 3 cases (attach disk db to disk db,  memory to memory, memory to
> disk) work well.
>
> Is this a bug or some limitation I am not aware of?
>
> (For the time being I can work around this, but it's a little uncomforting
> since I wouldn't have expected that)
>
> Thanks in advance
>
> ph
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to