Re: [sqlite] HOWTO: Parse user SQL and add persistent SQL

2008-10-11 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kristoffer Danielsson wrote: > However, if it turns out that parsing the VM-structure is incredibly hard, The "vm structure" is actually byte code for a virtual cpu (one that happens to be incredibly effective at dealing with the underlying details

Re: [sqlite] HOWTO: Parse user SQL and add persistent SQL

2008-10-10 Thread Kristoffer Danielsson
Kristoffer Danielsson wrote:> Consider an application where the user enters a search string:> SELECT Year FROM Car WHERE Brand = 'Audi'> > Now I want to add some conditions, depending on settings in the application. For instance, I would like to modify the above SQL string to get this:> SELECT

Re: [sqlite] HOWTO: Parse user SQL and add persistent SQL

2008-10-10 Thread Darren Duncan
Kristoffer Danielsson wrote: > Consider an application where the user enters a search string: > SELECT Year FROM Car WHERE Brand = 'Audi' > > Now I want to add some conditions, depending on settings in the application. > For instance, I would like to modify the above SQL string to get this: >

[sqlite] HOWTO: Parse user SQL and add persistent SQL

2008-10-10 Thread Kristoffer Danielsson
Consider an application where the user enters a search string: SELECT Year FROM Car WHERE Brand = 'Audi' Now I want to add some conditions, depending on settings in the application. For instance, I would like to modify the above SQL string to get this: SELECT Year, Color FROM Car WHERE Brand =