On Mar 14, 2011, at 12:08 PM, Henderson, Michael D wrote: > > How about the named parameters? If I know their name, then I could use lua_getfield to get their values. How do I get the names, though? I could scan the query string looking for :[a-zA-Z][a-zA-Z0-9_]* but is there a simpler way? You might find this example helpful: dbvm_bind_names in lsqlite3.c http://lua.sqlite.org/index.cgi/artifact?name=6cffe40718ef1d538a63ad8459caad19d8794717 e