Re: [Vala] Escape string for use in sqlite



On Tue, Mar 6, 2012 at 1:41 PM, Rodrigo Herefeld <rodrigo herefeld gmail com
wrote:

Hi all!
I'm writing a small program that uses a sqlite database, i need to escape
chars to avoid problems with sql, example,
if i try to add the entry "moe's bar" to the database it fails.
I'm not worried about sql injection because i'll be the only user for the
app, but i think about that too.
Does anyone have an idea? :-)


Use prepared statements.

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]