Re: [Vala] Escape string for use in sqlite
- From: Luca Bruno <lethalman88 gmail com>
- To: Rodrigo Herefeld <rodrigo herefeld gmail com>
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] Escape string for use in sqlite
- Date: Tue, 6 Mar 2012 13:49:43 +0100
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]