lua-users home
lua-l archive

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


On Wed, Jan 25, 2012 at 10:42 AM, Jay Carlson <nop@nop.com> wrote:
> for i, p in pairs (list) do
>  res = assert (con:execute(string.format([[
>    INSERT INTO people
>    VALUES ('%s', '%s')]], p.name, p.email)
>  ))
> end

Excuse my fascinated ignorance here, but surely the problem here comes
from not using %q ?

steve d.