Simon Slavin wrote:
> On 19 Dec 2013, at 2:47pm, Joseph Mokos <[email protected]> wrote:
>> ATTACH fn() AS somedb;
>>
>> I receive: SQL prepare error: invalid name: "fn"
>>
>> If I run "SELECT fn()", I receive the expected results so it seems my 
>> function is working properly.
>
> If it does work, and I'm not saying it does, then you would need to do 
> something like
>
> ATTACH (SELECT fn() AS somedb)

Error: invalid name: ""

It appears that the file name is actually parsed as an identifier, i.e.,
you don't even need to quote it if it doesn't have special characters:

ATTACH x AS y;

and SQLite will happily create a file named "x".


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

Reply via email to