According to the SQLite doc, the format of the ATTACH statement allows an 
expression to be used for the filename of the database I want to attach to.  I 
have written a user function that generates the filename based upon certain 
criteria.  If I try:

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.

Am I misunderstanding the doc?

Joe Mokos

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

Reply via email to