Re: [sqlite] 1: near ")": syntax error

2012-08-08 Thread Rick Maddy
Get rid of the comma at the end of the 'timestamp' line. Rick On Aug 8, 2012, at 10:03 PM, Brandon Pimenta wrote: > I just found a bug in SQLite. It says "1: near ")": syntax error". Here's > my SQL query: > > CREATE TABLE online_status ( > username varchar(255) NOT NULL default '', > timesta

Re: [sqlite] how to write this sql command?

2012-07-22 Thread Rick Maddy
INSERT INTO myTable (Rd, en, ue) SELECT 'aa', 'bb', ue FROM othertable; Rick On Jul 22, 2012, at 7:41 PM, YAN HONG YE wrote: > INSERT INTO myTable (Rd, en, ue) VALUES ("aa","bb",select ue from othertable); ___ sqlite-users mailing list sqlite-users@

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
Thanks. I'll hold off on checking the result of every sqlite3_bind_* for now. It's unlikely I'm using a finalized statement otherwise I believe I would get a given crash much more often. The sqlite3_prepare_v2 statements that are failing only fail occasionally, not every time. But I'll double ch

Re: [sqlite] EXT :Re: Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
Thanks but I'm not have any issue with the stack traces. Rick On Jul 19, 2012, at 12:27 PM, Black, Michael (IS) wrote: > Found this that might help you: > > http://stackoverflow.com/questions/1730180/is-this-kind-of-crash-report-useless > > > > Michael D. Black ___

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
19, 2012, at 12:00 PM, Richard Hipp wrote: > On Thu, Jul 19, 2012 at 1:56 PM, Rick Maddy wrote: > >> What about checking all the sqlite3_bind_* methods? Is it possible any of >> those could cause the problems I'm seeing? >> > > Being busing with other issue

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
What about checking all the sqlite3_bind_* methods? Is it possible any of those could cause the problems I'm seeing? Rick On Jul 19, 2012, at 11:42 AM, Simon Slavin wrote: > > On 19 Jul 2012, at 6:03pm, Rick Maddy wrote: > >> Thanks. Time to add checks to nearly

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
lt values, just not all, and none of the 'prepare' statements. Thanks, Rick On Jul 19, 2012, at 11:42 AM, Simon Slavin wrote: > > On 19 Jul 2012, at 6:03pm, Rick Maddy wrote: > >> Thanks. Time to add checks to nearly 400 prepare and step statements. > > Sorry

Re: [sqlite] EXT :Re: Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
But that would flag valid state changes just as much as it would flag corrupted memory. Rick On Jul 19, 2012, at 11:15 AM, Black, Michael (IS) wrote: > It could easiliy be expanded to look at the whole structure... > > > > Or just do an XOR checksum on the bytes in sizeof(sqlite3) and comp

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
Thanks but doesn't that code check to see if the database pointer has changed and not whether the memory it references has been corrupted? I guess that's a start though. Rick On Jul 19, 2012, at 11:02 AM, Black, Michael (IS) wrote: > Buffer overflow issues can cause problems at seemingly ran

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
Thanks. Time to add checks to nearly 400 prepare and step statements. Rick ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
urn value of the prepare statement going to help if the prepare statement crashes before returning? Thanks, Rick On Jul 19, 2012, at 10:32 AM, Simon Slavin wrote: > > On 19 Jul 2012, at 5:09pm, Rick Maddy wrote: > >> Exception Type: SIGSEGV >> Exception Codes: SEGV_A

[sqlite] Getting occasional crashes with sqlite3_prepare_v2 and sqlite3_step in iOS app

2012-07-19 Thread Rick Maddy
For quite some time now I've been getting reports of crashes in my iOS app. Specifically these are caused by crashes in sqlite3_prepare_v2 and sqlite_step. The associated code works fine most of the time. So I'm looking for thoughts on how to find and fix the problem since there seems to be no p

Re: [sqlite] Parallel execution of queries in threads

2011-03-01 Thread Maddy
3.7.5 and 3.7.4. Thanks, Madhav On Fri, Feb 25, 2011 at 7:28 PM, Maddy wrote: > I had tried on sqlite version 3.7.4. > Let me check it on sqlite version 3.7.5. > > Thanks, > Madhav > > > On Thu, Feb 24, 2011 at 9:19 PM, Richard Hipp wrote: > >> >> >>

Re: [sqlite] Parallel execution of queries in threads

2011-02-25 Thread Maddy
I had tried on sqlite version 3.7.4. Let me check it on sqlite version 3.7.5. Thanks, Madhav On Thu, Feb 24, 2011 at 9:19 PM, Richard Hipp wrote: > > > On Thu, Feb 24, 2011 at 4:52 AM, Maddy wrote: > >> Hi, >> I have 4 "SELECT" queries which are accessing sa

[sqlite] Parallel execution of queries in threads

2011-02-24 Thread Maddy
Hi, I have 4 "SELECT" queries which are accessing same table. When I executed these queries concurrently using pthreads in Linux, it took approximate 10 Seconds. But same 4 queries executed sequentially it only took 2 seconds. Total Rows in table are 10. Sample query is "SELECT column1, sum(col