Re: [Vala] Escape string for use in sqlite



Use GDA. Look at:

http://live.gnome.org/ChooseLibgdaSQLite


2012/3/9 Shawn Ferris <shawn ferris gmail com>

On Tue, Mar 6, 2012 at 12:33 PM, Luca Bruno <lethalman88 gmail com> wrote:
On Tue, Mar 6, 2012 at 8:30 PM, Rodrigo Herefeld <
rodrigo herefeld gmail com
wrote:

When you bind a string parameter it will be escaped.

I would add that database engines are usually better at optimizing SQL
with bind variables, as well, binds help prevent SQL Injection
attacks. The latter is the best reason of all, to use them, the other
two you get for free. :D

Shawn
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los
cuates: LIBRE)


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