in reply to Concrete SQL from SQL::Abstract?
sub query_as_string { my ($sql, @bind)=@_; # [14:50] <ilmari> metaperl: s/\?/$dbh->quote(shift @bind)/ge $_ = $sql; s/\?/$dbh->quote(shift @bind)/ge ; $_; }
-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Concrete SQL from SQL::Abstract?
by benizi (Hermit) on Sep 26, 2010 at 07:11 UTC |