[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string dollar literals (for luamacro or tokenf)
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 25 Jan 2012 11:12:22 +0200
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.