Re: [sqlite] Table already exists error code

2012-04-14 Thread J Decker
strstr( error, "already exists" ); ? On Sat, Apr 14, 2012 at 6:03 AM, Oleksii Timofieiev wrote: > http://www.sqlite.org/faq.html#q7 > > or > > CREATE TABLE IF NOT EXISTS > > On Fri, Apr 13, 2012 at 6:52 PM, Marco Bambini wrote: > >> When I try to create a table that already exists inside a datab

Re: [sqlite] Table already exists error code

2012-04-14 Thread Oleksii Timofieiev
http://www.sqlite.org/faq.html#q7 or CREATE TABLE IF NOT EXISTS On Fri, Apr 13, 2012 at 6:52 PM, Marco Bambini wrote: > When I try to create a table that already exists inside a database I > obtain the error message: "table xyz already exists" and the error code is > 1. > Is there a way to rec

[sqlite] Table already exists error code

2012-04-14 Thread Marco Bambini
When I try to create a table that already exists inside a database I obtain the error message: "table xyz already exists" and the error code is 1. Is there a way to receive a more detailed error message that can inform me that the object is already present inside the database? Thanks a lot. -- M