Re: [sqlite] Executing a select with like clause

2008-09-26 Thread John Stanton
I don't see you compiling the SQL statement with a prepare or testing for errors. RickLaird wrote: > I am trying to execute a select with a like clause. I am having > trouble passing in the string to match in the bind call. > > You might notice I am writing this in cocoa. I hope the logic c

[sqlite] Executing a select with like clause

2008-09-25 Thread RickLaird
I am trying to execute a select with a like clause. I am having trouble passing in the string to match in the bind call. You might notice I am writing this in cocoa. I hope the logic comes across independent of the language const char *sql = "SELECT pk FROM quotes WHERE quote like ? "; co