Re: [sqlite] Formatting SQLite-query

2004-11-01 Thread Steven Van Ingelgem
Maybe yes. I am currently looking into parameterized queries. Is it like this: sqlite_prepare sqlite_bind_* sqlite_finalize with the query like 'SELECT * FROM ? WHERE ? = ?'... But how can I know what I pass? I mean with %d/%s/... It's rather obvious, but how do I know what I pass when I use thos

Re: [sqlite] Formatting SQLite-query

2004-11-01 Thread Clay Dowling
Steven Van Ingelgem said: > > Sorry but this has already been suggested by "Tiago Dionizio". > > I can use this, but then I have to create some kind of own printf-function > which scans and so on and handles %q's (which is rather dumb in my > opinion, > as SQLite already incorporates it?). > > > I

Re: [sqlite] Formatting SQLite-query

2004-11-01 Thread Steven Van Ingelgem
Sorry but this has already been suggested by "Tiago Dionizio". I can use this, but then I have to create some kind of own printf-function which scans and so on and handles %q's (which is rather dumb in my opinion, as SQLite already incorporates it?). I think this is a va_* error but I am unable

Re: [sqlite] Formatting SQLite-query

2004-11-01 Thread Clay Dowling
Steven Van Ingelgem said: > Sorry to bump this up, but i was still not able to find an answer for > this > question :( > > http://www.wxwidgets.org/manuals/2.4.2/wx368.htm#wxstringformat Clay Dowling -- Lazarus Notes from Lazarus Internet Development http://www.lazarusid.com/notes/ Articles, R

Re: [sqlite] Formatting SQLite-query

2004-10-25 Thread Steven Van Ingelgem
Because wxString::Format doesn't have the '%q' functions which sqlite provides ;-) At 21:30 25/10/2004, you wrote: I assume you are using wxWidgets.. why don't you consider using the specific functions for that purpose included in the wxString class? wxString::Format and wxString::FormatV Tiago

Re: [sqlite] Formatting SQLite-query

2004-10-25 Thread Steven Van Ingelgem
I am using Visual C++ 6. And I am using the source-version 3.0.8 of SQLite. So the va_list/end/start... functions should all be the very same... That's why it got me puzzled :S At 22:24 25/10/2004, you wrote: Hi Steve, > Hi, > > I wanted to create my own "Format"-thingie, based upon my own dat

Re: [sqlite] Formatting SQLite-query

2004-10-25 Thread Ulrik Petersen
Hi Steve, > Hi, > > I wanted to create my own "Format"-thingie, based upon my own database: [snip] > What did I do wrong? I am not sure, but if the compiler AND the implementation of va_list etc. weren't the same, then all bets are off. This is because va_list etc. are highly implementation-de

Re: [sqlite] Formatting SQLite-query

2004-10-25 Thread Tiago Dionizio
I assume you are using wxWidgets.. why don't you consider using the specific functions for that purpose included in the wxString class? wxString::Format and wxString::FormatV Tiago On Mon, 25 Oct 2004 20:43:31 +0200, Steven Van Ingelgem <[EMAIL PROTECTED]> wrote: > Hi, > > I wanted to create